mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-08-14 23:56:43 +00:00
Fix logic for header copying.
This commit is contained in:
parent
4c74225413
commit
4aa7d3ee73
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -209,7 +209,7 @@ outer:
|
|||
continue outer
|
||||
}
|
||||
}
|
||||
if (name != "Content-Length" || length) && strings.HasPrefix(name, "Access-Control") {
|
||||
if (name != "Content-Length" || length) && !strings.HasPrefix(name, "Access-Control") {
|
||||
// Loop over all values for the name.
|
||||
for _, value := range values {
|
||||
to.Set(name, value)
|
||||
|
|
Loading…
Reference in a new issue