>From the documentation for ProxyFromEnvironment 
<https://golang.org/src/net/http/transport.go?s=16634:16691#L427>:
"As a special case, if req.URL.Host is "localhost" (with or without a port 
number), then a nil URL and nil error will be returned."

Can anyone explain the reasoning behind this? It rather interferes with 
debugging traffic using a local proxy like Fiddler.

I've seen suggestions to define an alternative hostname in /etc/hosts but 
as far as I can tell this doesn't work either.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/499a922f-2298-4cef-ba3d-c16e38e6e548n%40googlegroups.com.

Reply via email to