mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 751452 - Prevent DNT modification in unprivileged mode + test case. r=khuey
This commit is contained in:
parent
a941bdf2bd
commit
7d7c542db1
@ -3224,8 +3224,8 @@ nsXMLHttpRequest::SetRequestHeader(const nsACString& header,
|
||||
const char *kInvalidHeaders[] = {
|
||||
"accept-charset", "accept-encoding", "access-control-request-headers",
|
||||
"access-control-request-method", "connection", "content-length",
|
||||
"cookie", "cookie2", "content-transfer-encoding", "date", "expect",
|
||||
"host", "keep-alive", "origin", "referer", "te", "trailer",
|
||||
"cookie", "cookie2", "content-transfer-encoding", "date", "dnt",
|
||||
"expect", "host", "keep-alive", "origin", "referer", "te", "trailer",
|
||||
"transfer-encoding", "upgrade", "user-agent", "via"
|
||||
};
|
||||
PRUint32 i;
|
||||
|
@ -30,6 +30,7 @@ var headers = [
|
||||
"cOOkiE2",
|
||||
"cOntEnt-tRAnsFer-enCoDiNg",
|
||||
"DATE",
|
||||
"dNT",
|
||||
"exPeCt",
|
||||
"hOSt",
|
||||
"keep-alive",
|
||||
|
Loading…
Reference in New Issue
Block a user