You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to see?
The proxy handler was called for CONNECT requests.
What did you see instead? http.ServeMux can't find the registered handler. It uses http.NotFoundHandler() to handle the CONNECT request and Client.Get returns a Not Found error.
This issue has been reported in #9561 but it has been closed. I want to build a proxy using App Engine, but there is no way to register a proxy handler because only http.Handle(underly using http.ServeMux.Handle) is available for App Engine. Although it can be avoided by using http.ListenAndServe in a normal environment, I think small changes to http.ServeMux.Handler implementation can fix this problem.
The text was updated successfully, but these errors were encountered:
go version
)?go version devel +fee02d2 Fri Jun 10 04:12:50 2016 +0000 linux/amd64
go env
)?linux amd64
Register a CONNECT proxy handler to
http.ServeMux
:https://play.golang.org/p/5rrDNhffaz
The proxy handler was called for CONNECT requests.
http.ServeMux
can't find the registered handler. It useshttp.NotFoundHandler()
to handle the CONNECT request andClient.Get
returns aNot Found
error.This issue has been reported in #9561 but it has been closed. I want to build a proxy using App Engine, but there is no way to register a proxy handler because only
http.Handle
(underly usinghttp.ServeMux.Handle
) is available for App Engine. Although it can be avoided by usinghttp.ListenAndServe
in a normal environment, I think small changes tohttp.ServeMux.Handler
implementation can fix this problem.The text was updated successfully, but these errors were encountered: