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
|
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.
|
// Loop over all values for the name.
|
||||||
for _, value := range values {
|
for _, value := range values {
|
||||||
to.Set(name, value)
|
to.Set(name, value)
|
||||||
|
|
Loading…
Reference in a new issue