Closed
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version
)?
1.6 - What operating system and processor architecture are you using (
go env
)?
darwin amd64 [os x] - What did you do?
I tried to use Proxy with aBearer
authentication method. - What did you expect to see?
Allow other authentication method than Basic HTTP - What did you see instead?
Proxy authentication is limited to Basic-HTTP-Authentication only, with user & password:
https://github.com/golang/go/blob/master/src/net/http/transport.go#L493 - Suggestion
url.URL
should allow custom authentication such asbearer
url.URL
should provide a method that returns the "authentication header value", and do the base64 etc.