Skip to content

Commit

Permalink
add case for empty set-cookie header list (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
JBlaschke authored Jul 7, 2024
1 parent 96a0b34 commit 1b4f829
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cookies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ const RFC1123GMTFormat = gmtformat(Dates.RFC1123Format)
function readsetcookies(h::Headers)
result = Cookie[]
for line in headers(h, "Set-Cookie")
if length(line) == 0
continue
end
parts = split(strip(line), ';'; keepempty=false)
if length(parts) == 1 && parts[1] == ""
continue
Expand Down

0 comments on commit 1b4f829

Please sign in to comment.