diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-06 13:25:37 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-06 13:25:37 +0100 |
commit | b7174ca842a6c0d5af4266d7b47143d3ba21a4f4 (patch) | |
tree | 20ee8533673c7e23058018f50f63bedf0429240b /netwerk | |
parent | b2a466eb6231384eb74b82b7991a183f3ed43da5 (diff) | |
download | palemoon-gre-b7174ca842a6c0d5af4266d7b47143d3ba21a4f4.tar.gz |
Add trailing slash to origin referer header when policy is set
Issue #1629
Diffstat (limited to 'netwerk')
-rw-r--r-- | netwerk/protocol/http/HttpBaseChannel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/netwerk/protocol/http/HttpBaseChannel.cpp b/netwerk/protocol/http/HttpBaseChannel.cpp index 964247d2d..598d8ca91 100644 --- a/netwerk/protocol/http/HttpBaseChannel.cpp +++ b/netwerk/protocol/http/HttpBaseChannel.cpp @@ -1240,8 +1240,9 @@ HttpBaseChannel::SetReferrerWithPolicy(nsIURI *referrer, break; } case 2: - // scheme+host+port + // scheme+host+port+/ rv = clone->GetPrePath(spec); + spec.AppendLiteral("/"); if (NS_FAILED(rv)) return rv; break; |