summaryrefslogtreecommitdiff
path: root/netwerk
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-06 13:25:37 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-06 13:25:37 +0100
commitb7174ca842a6c0d5af4266d7b47143d3ba21a4f4 (patch)
tree20ee8533673c7e23058018f50f63bedf0429240b /netwerk
parentb2a466eb6231384eb74b82b7991a183f3ed43da5 (diff)
downloadpalemoon-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.cpp3
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;