Skip to content

Commit

Permalink
Omit Referer header when referrer is "no-referrer"
Browse files Browse the repository at this point in the history
Fixes #323.
  • Loading branch information
annevk committed Jul 25, 2016
1 parent 292c629 commit 7feaed2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Overview.html
Expand Up @@ -3174,15 +3174,14 @@ <h3 id="http-network-or-cache-fetch"><span class="secno">5.5 </span>HTTP-network
<var>httpRequest</var>'s
<a href="#concept-request-header-list" title="concept-request-header-list">header list</a>.

<li><p><a href="#concept-header-list-append" title="concept-header-list-append">Append</a>
`<code title="">Referer</code>`/empty byte sequence, if <var>httpRequest</var>'s
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a> is "<code>no-referrer</code>", and
<li><p>If <var>httpRequest</var>'s <a href="#concept-request-referrer" title="concept-request-referrer">referrer</a> is a
<a class="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#concept-url" title="concept-url">URL</a>, then
<a href="#concept-header-list-append" title="concept-header-list-append">append</a>
`<code title="">Referer</code>`/<var>httpRequest</var>'s
<a href="#concept-request-referrer" title="concept-request-referrer">referrer</a>,
<a class="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#concept-url-serializer" title="concept-url-serializer">serialized</a> and
<a class="external" data-anolis-spec="encoding" href="https://encoding.spec.whatwg.org/#utf-8-encode" title="utf-8 encode">utf-8 encoded</a>, otherwise, to
<var>httpRequest</var>'s
<a href="#concept-request-header-list" title="concept-request-header-list">header list</a>.
<a class="external" data-anolis-spec="encoding" href="https://encoding.spec.whatwg.org/#utf-8-encode" title="utf-8 encode">utf-8 encoded</a>, to
<var>httpRequest</var>'s <a href="#concept-request-header-list" title="concept-request-header-list">header list</a>.
<!-- XXX ideally we have an easier way to convert something ASCII-safe into bytes
concept-as-bytes -->

Expand Down Expand Up @@ -5621,6 +5620,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
Jeff Hodges,
Jeffrey Yasskin,
Jesse M. Heines,
Jochen Eisinger,
Jonas Sicking,
Jonathan Kingston,
Jonathan Watt,
Expand Down
12 changes: 6 additions & 6 deletions Overview.src.html
Expand Up @@ -3102,15 +3102,14 @@ <h3>HTTP-network-or-cache fetch</h3>
<var>httpRequest</var>'s
<span title=concept-request-header-list>header list</span>.

<li><p><span title=concept-header-list-append>Append</span>
`<code title>Referer</code>`/empty byte sequence, if <var>httpRequest</var>'s
<span title=concept-request-referrer>referrer</span> is "<code>no-referrer</code>", and
<li><p>If <var>httpRequest</var>'s <span title=concept-request-referrer>referrer</span> is a
<span data-anolis-spec=url title=concept-url>URL</span>, then
<span title=concept-header-list-append>append</span>
`<code title>Referer</code>`/<var>httpRequest</var>'s
<span title=concept-request-referrer>referrer</span>,
<span data-anolis-spec=url title=concept-url-serializer>serialized</span> and
<span data-anolis-spec=encoding title="utf-8 encode">utf-8 encoded</span>, otherwise, to
<var>httpRequest</var>'s
<span title=concept-request-header-list>header list</span>.
<span data-anolis-spec=encoding title="utf-8 encode">utf-8 encoded</span>, to
<var>httpRequest</var>'s <span title=concept-request-header-list>header list</span>.
<!-- XXX ideally we have an easier way to convert something ASCII-safe into bytes
concept-as-bytes -->

Expand Down Expand Up @@ -5457,6 +5456,7 @@ <h2 class=no-num>Acknowledgments</h2>
Jeff Hodges,
Jeffrey Yasskin,
Jesse M. Heines,
Jochen Eisinger,
Jonas Sicking,
Jonathan Kingston,
Jonathan Watt,
Expand Down

0 comments on commit 7feaed2

Please sign in to comment.