mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-08-22 17:46:48 +08:00
HTTPUpgrade send headers with specified capitalization (#3430)
* Fix HTTPUpgrade header capitalization * Chore * Remove excess host headers Chore : change httpupgrade header "upgrade" to "Upgrade" #3435
This commit is contained in:
@@ -62,7 +62,7 @@ func (s *server) Handle(conn net.Conn) (stat.Connection, error) {
|
||||
ProtoMinor: 1,
|
||||
Header: http.Header{},
|
||||
}
|
||||
resp.Header.Set("Connection", "upgrade")
|
||||
resp.Header.Set("Connection", "Upgrade")
|
||||
resp.Header.Set("Upgrade", "websocket")
|
||||
err = resp.Write(conn)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user