-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Milestone
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 aBearerauthentication 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.URLshould allow custom authentication such asbearerurl.URLshould provide a method that returns the "authentication header value", and do the base64 etc.