1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

specify protocol in http inbound

This commit is contained in:
Darien Raymond 2019-02-28 10:37:27 +01:00
parent 0d31a68694
commit 39835e8da2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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