Revert "check request.Host instead of request.URL.Host. fix #681"

This reverts commit ba16987a07.
pull/684/merge
Darien Raymond 7 years ago
parent 25a1f1d450
commit fde421ac58

@ -217,7 +217,7 @@ func StripHopByHopHeaders(header http.Header) {
var errWaitAnother = newError("keep alive")
func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, reader io.Reader, writer io.Writer, dest net.Destination, dispatcher dispatcher.Interface) error {
if len(request.Host) <= 0 {
if len(request.URL.Host) <= 0 {
response := &http.Response{
Status: "Bad Request",
StatusCode: 400,

Loading…
Cancel
Save