mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 13:34:55 +08:00
Allowapplication/octet-stream content type for import (#650)
This commit is contained in:
parent
c1a6bc1aa8
commit
6ba5d0017a
1 changed files with 5 additions and 2 deletions
|
@ -64,8 +64,11 @@ defmodule Livebook.ContentLoader do
|
|||
{:ok, 200, headers, body} ->
|
||||
valid_content? =
|
||||
case HTTP.fetch_content_type(headers) do
|
||||
{:ok, content_type} -> content_type in ["text/plain", "text/markdown"]
|
||||
:error -> false
|
||||
{:ok, content_type} ->
|
||||
content_type in ["text/plain", "text/markdown", "application/octet-stream"]
|
||||
|
||||
:error ->
|
||||
false
|
||||
end
|
||||
|
||||
if valid_content? do
|
||||
|
|
Loading…
Add table
Reference in a new issue