From bb2a119395c0d6cf46cfbb50e5bc3caf10a61df9 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Wed, 2 Sep 2015 19:53:35 -0400 Subject: [PATCH] Bug 1200869 - Empty the header value for code hygiene; r=sicking --- dom/security/nsCORSListenerProxy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom/security/nsCORSListenerProxy.cpp b/dom/security/nsCORSListenerProxy.cpp index 35d8337ab3b..f8c8b73c0ca 100644 --- a/dom/security/nsCORSListenerProxy.cpp +++ b/dom/security/nsCORSListenerProxy.cpp @@ -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);