-
Notifications
You must be signed in to change notification settings - Fork 160
No way to access the underlying transport mechanism #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for the super late reply, but yes, of course this would be a fine addition. I'll merge it today. |
headzoo
added a commit
that referenced
this issue
Apr 29, 2015
I made one small change. Instead of this: client := &http.Client{Transport: bow.transport} I used this: if bow.transport != nil {
client.Transport = bow.transport
} I'm also not setting the transport automatically in |
backwardn
pushed a commit
to backwardn/surf
that referenced
this issue
Aug 21, 2019
* request methods Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * simplify request internals Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * cargo fmt Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * get/set headers Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * simplify methods Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * add methods, use url Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * use mime & url crates Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * string request body Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * add file uploads Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * fix mime guessing Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * group together the body methods Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com> * headers visitor Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While attempting to manipulate an https url, I encountered problems with an unverified x509 certificate:
err = x509: certificate signed by unknown authority
Googling indicated that this is a known issue for some sites under OSX. The recommended fix was to adjust the
http.Transport
to ignore unverified certificates. Reference the following Google groups link:https://groups.google.com/forum/#!topic/golang-nuts/v5ShM8R7Tdc
I modified my version of surf to expose a method to set the transport, and this fixes my issue locally. Would you mind reviewing my diff and consider integrating it with the mainline?
The text was updated successfully, but these errors were encountered: