Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long share requests may truncate with GET #82

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

ewilligers
Copy link
Collaborator

@ewilligers ewilligers commented Apr 26, 2019

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."


Preview | Diff

@@ -737,6 +741,8 @@ <h3>
</li>
<li>If <var>value</var> is <code>undefined</code>, then continue.
</li>
<li>If <var>method</var> is <code>"GET"</code> and <var>value</var> exceeds 2000 bytes, the user agent MAY truncate <var>value</var>.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Possibly reword as something like:
If method is GET and value exceeds 2000 bytes in length, the user agent MAY set value to the first 2000 bytes of value.

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."
@ewilligers ewilligers merged commit dd4e83f into w3c:master Apr 29, 2019
@ewilligers ewilligers deleted the risk-truncation branch April 29, 2019 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants