Skip to content

Commit dd4e83f

Browse files
authored
Long share requests may truncate with GET (#82)
Allow share data to be truncated when method is GET and a member of the shared data exceeds 2000 bytes. User agents may need to avoid large GET requests, e.g. https://tools.ietf.org/html/rfc7230#section-3.1.1 "It is RECOMMENDED that all HTTP senders and recipients support, at a minimum, request-line lengths of 8000 octets."
1 parent 0d9d25f commit dd4e83f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

level-2/index.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
choosing.
7474
</p>
7575
</section>
76-
<section id="sotd">
77-
</section>
76+
<section id="sotd"></section>
7877
<section>
7978
<h2>
8079
Prerequisites
@@ -269,10 +268,10 @@ <h2>
269268
</li>
270269
</ul>
271270
<p>
272-
As with HTML forms, replying to a POST request with a
273-
<a data-cite="!RFC7231#section-6.4.4">303 See Other</a> redirect
274-
is highly recommended, as it avoids the POST being submitted a
275-
second time if the user requests a page refresh.
271+
As with HTML forms, replying to a POST request with a <a data-cite=
272+
"!RFC7231#section-6.4.4">303 See Other</a> redirect is highly
273+
recommended, as it avoids the POST being submitted a second time if the
274+
user requests a page refresh.
276275
</p>
277276
</section>
278277
<section data-link-for="WebAppManifest">
@@ -515,6 +514,10 @@ <h3>
515514
performs a side-effect without any user interaction,
516515
<code>POST</code> requests should be used.
517516
</p>
517+
<p class="warning">
518+
The user agent MAY truncate the share data if <var>method</var> is
519+
<code>"GET"</code> and an entry in the share data exceeds 2000 bytes.
520+
</p>
518521
<p>
519522
The <dfn>enctype</dfn> member specifies how the share data is encoded
520523
in the request.
@@ -737,6 +740,10 @@ <h3>
737740
</li>
738741
<li>If <var>value</var> is <code>undefined</code>, then continue.
739742
</li>
743+
<li>If <var>method</var> is <code>"GET"</code> and
744+
<var>value</var> exceeds 2000 bytes in length, the user agent MAY
745+
set <var>value</var> to the first 2000 bytes of <var>value</var>.
746+
</li>
740747
<li>
741748
<a data-cite="!INFRA#list-append">Append</a> to <var>entry
742749
list</var> a tuple with <var>name</var> and <var>value</var>.

0 commit comments

Comments
 (0)