Allowapplication/octet-stream content type for import (#650)

This commit is contained in:
Jonatan Kłosko 2021-10-27 13:49:03 +02:00 committed by GitHub
parent c1a6bc1aa8
commit 6ba5d0017a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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