diff options
author | Moonchild <mcwerewolf@wolfbeast.com> | 2019-03-12 18:29:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 18:29:14 +0100 |
commit | 709bc24e9110eba12f94cfcb8db00a8338ac4098 (patch) | |
tree | 8218d4f60d9eccacbf42df8cb88094a082d401b4 /netwerk/protocol/http/HttpBaseChannel.cpp | |
parent | 6b4d81521f0c7bef48a1e8c3e9254a81df27a9d2 (diff) | |
parent | 367d77ee9a6df15cacaf1a1f4032f834e972b335 (diff) | |
download | UXP-709bc24e9110eba12f94cfcb8db00a8338ac4098.tar UXP-709bc24e9110eba12f94cfcb8db00a8338ac4098.tar.gz UXP-709bc24e9110eba12f94cfcb8db00a8338ac4098.tar.lz UXP-709bc24e9110eba12f94cfcb8db00a8338ac4098.tar.xz UXP-709bc24e9110eba12f94cfcb8db00a8338ac4098.zip |
Merge pull request #995 from MoonchildProductions/httpaccept-work
Change the way http Accept: headers are used.
Diffstat (limited to 'netwerk/protocol/http/HttpBaseChannel.cpp')
-rw-r--r-- | netwerk/protocol/http/HttpBaseChannel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/netwerk/protocol/http/HttpBaseChannel.cpp b/netwerk/protocol/http/HttpBaseChannel.cpp index 9e43d89e0..86e177e71 100644 --- a/netwerk/protocol/http/HttpBaseChannel.cpp +++ b/netwerk/protocol/http/HttpBaseChannel.cpp @@ -151,7 +151,8 @@ HttpBaseChannel::Init(nsIURI *aURI, nsProxyInfo *aProxyInfo, uint32_t aProxyResolveFlags, nsIURI *aProxyURI, - const nsID& aChannelId) + const nsID& aChannelId, + nsContentPolicyType aContentPolicyType) { LOG(("HttpBaseChannel::Init [this=%p]\n", this)); @@ -200,7 +201,7 @@ HttpBaseChannel::Init(nsIURI *aURI, rv = mRequestHead.SetHeader(nsHttp::Host, hostLine); if (NS_FAILED(rv)) return rv; - rv = gHttpHandler->AddStandardRequestHeaders(&mRequestHead, isHTTPS); + rv = gHttpHandler->AddStandardRequestHeaders(&mRequestHead, isHTTPS, aContentPolicyType); if (NS_FAILED(rv)) return rv; nsAutoCString type; |