Browse Source

specify protocol in http inbound

pull/1581/head
Darien Raymond 6 years ago
parent
commit
39835e8da2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 4
      proxy/http/server.go

4
proxy/http/server.go

@ -239,6 +239,10 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
request.Header.Set("User-Agent", "")
}
ctx = session.ContextWithContent(ctx, &session.Content{
Protocol: "http/1.1",
})
link, err := dispatcher.Dispatch(ctx, dest)
if err != nil {
return err

Loading…
Cancel
Save