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:
1 parent
f8ec93dfdd
commit
3654c0d710
3 files changed
+26
-63
No files matched your search
@@ -208,8 +208,10 @@ func (c *HttpUpgradeConfig) Build() (proto.Message, error) {
|
||||
// Host priority: Host field > headers field > address.
|
||||
if c.Host == "" && c.Headers["host"] != "" {
|
||||
c.Host = c.Headers["host"]
|
||||
delete(c.Headers,"host")
|
||||
} else if c.Host == "" && c.Headers["Host"] != "" {
|
||||
c.Host = c.Headers["Host"]
|
||||
delete(c.Headers,"Host")
|
||||
}
|
||||
config := &httpupgrade.Config{
|
||||
Path: path,
|
||||
|
||||
Reference in new issue
Block a user