diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-07 12:45:54 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-07 12:45:54 +0100 |
commit | d38ddd92e159113aae22c4dc8f03dc2285e01b14 (patch) | |
tree | e7b7b0f0604856a7fb9fed588dd2ba8be7da61b9 /netwerk/protocol/http/HttpBaseChannel.cpp | |
parent | 7e0d3b80f114a1905003804c35cd863d634ecdbb (diff) | |
download | UXP-d38ddd92e159113aae22c4dc8f03dc2285e01b14.tar UXP-d38ddd92e159113aae22c4dc8f03dc2285e01b14.tar.gz UXP-d38ddd92e159113aae22c4dc8f03dc2285e01b14.tar.lz UXP-d38ddd92e159113aae22c4dc8f03dc2285e01b14.tar.xz UXP-d38ddd92e159113aae22c4dc8f03dc2285e01b14.zip |
Part 1: network component changes.
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; |