mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1200869 - Empty the header value for code hygiene; r=sicking
This commit is contained in:
parent
fef46400c2
commit
bb2a119395
@ -1130,6 +1130,7 @@ nsCORSPreflightListener::AddResultToCache(nsIRequest *aRequest)
|
||||
|
||||
// The "Access-Control-Allow-Methods" header contains a comma separated
|
||||
// list of method names.
|
||||
headerVal.Truncate();
|
||||
http->GetResponseHeader(NS_LITERAL_CSTRING("Access-Control-Allow-Methods"),
|
||||
headerVal);
|
||||
|
||||
@ -1160,6 +1161,7 @@ nsCORSPreflightListener::AddResultToCache(nsIRequest *aRequest)
|
||||
|
||||
// The "Access-Control-Allow-Headers" header contains a comma separated
|
||||
// list of method names.
|
||||
headerVal.Truncate();
|
||||
http->GetResponseHeader(NS_LITERAL_CSTRING("Access-Control-Allow-Headers"),
|
||||
headerVal);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user