mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
fix protocol matching in routing (#2540)
* remove invalid http2 sniffer * do not set metadata protocol for http inbound http inbound may have transport settings * fix doh metadata protocol
This commit is contained in:
@@ -242,9 +242,7 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
|
||||
request.Header.Set("User-Agent", "")
|
||||
}
|
||||
|
||||
content := &session.Content{
|
||||
Protocol: "http/1.1",
|
||||
}
|
||||
content := &session.Content{}
|
||||
|
||||
content.SetAttribute(":method", strings.ToUpper(request.Method))
|
||||
content.SetAttribute(":path", request.URL.Path)
|
||||
|
||||
Reference in New Issue
Block a user