mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
pass on empty scraper url (fixes philomena-dev/philomena#81)
This commit is contained in:
parent
c0336f0685
commit
92ade8e543
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ defmodule PhilomenaWeb.ScraperPlug do
|
|||
%{^params_name => %{^params_key => %Plug.Upload{}}} ->
|
||||
conn
|
||||
|
||||
%{"scraper_cache" => url} when not is_nil(url) ->
|
||||
%{"scraper_cache" => url} when not is_nil(url) and url != "" ->
|
||||
url
|
||||
|> Philomena.Http.get()
|
||||
|> maybe_fixup_params(url, opts, conn)
|
||||
|
|
Loading…
Reference in a new issue