Skip to content

Commit

Permalink
Make set-cookie response header case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiRojo committed Sep 24, 2021
1 parent c7dff29 commit b41b9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CookieRequest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function getcookies(cookies, url)
end

function setcookies(cookies, host, headers)
for (k,v) in filter(x->x[1]=="Set-Cookie", headers)
for (k,v) in filter(x->lowercase(x[1])=="set-cookie", headers)
@debug 1 "Set-Cookie: $v (from $host)"
push!(cookies, Cookies.readsetcookie(host, v))
end
Expand Down

0 comments on commit b41b9c4

Please sign in to comment.