mirror of https://github.com/v2ray/v2ray-core
specify protocol in http inbound
parent
0d31a68694
commit
39835e8da2
|
@ -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…
Reference in New Issue