Skip to content

Commit c1e9b71

Browse files
Merge pull request #30 from julcansado/content-type
Adds explicit content-type in search function
2 parents e2f64b6 + 6a7f562 commit c1e9b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function FeatureCollection(url,query; method=:get, _enctype = :form_urlencoded)
2323
r = HTTP.post(url,[],body=next_request[:body])
2424
elseif _enctype == :json
2525
b = JSON3.write(next_request[:body])
26-
r = HTTP.post(url,[],b)
26+
r = HTTP.post(url,["Content-Type" => "application/json"],b)
2727
else
2828
error("unknown encoding for POST $_enctype")
2929
end

0 commit comments

Comments
 (0)