net/http/cookiejar: CookieJar does not safely create keys from hosts #19384
Labels
FrozenDueToAge
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
Using http.CookieJar with http.Client and github.com/viki-org/dnscache I have had some failed DNS lookups which reveled a bug in
jarKey()
when an invalid host string is given. Unfortunately I am having trouble re-creating this issue from the application.What did you expect to see?
Nothing
What did you see instead?
For my current Go 1.7 source here is the line 356:
The text was updated successfully, but these errors were encountered: