mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-12-06 19:16:28 +01:00
Fix logic for header copying.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user