Skip to content

Commit

Permalink
force servers to accept any reasonable-length ASCII string as Content…
Browse files Browse the repository at this point in the history
…-Type, fix #84
  • Loading branch information
michielbdejong committed Jun 10, 2015
1 parent 65721f0 commit 1c25e44
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## Breaking for clients:
* Servers MAY respond with a 4xx response code if the Content-Type is not an
official MIME Media Type, is too long, is missing altogether, etc. (issues #84
ASCII string, is too long, is missing altogether, etc. (issues #84
and #86).

# draft-dejong-remotestorage-04.txt
Expand Down
30 changes: 15 additions & 15 deletions draft-dejong-remotestorage-05.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ Internet-Draft remoteStorage December 2014
and further ancestor folders, using a strong validator [HTTP,
section 7.2].

If no Content-Type header was received as part of a PUT request,
or the value of the Content-Type header does not appear in the IANA
registry of MIME Media Types [MEDIA-TYPES], the server MAY refuse to
If not exactly one Content-Type header was received as part of a
PUT request, the Content-Type header value contains non-ASCII
characters, or it is unreasonably long, the server MAY refuse to
process the request, and instead respond with a descriptive error
message in the body, and a http response code from the 4xx range.

Expand Down Expand Up @@ -1033,10 +1033,6 @@ Internet-Draft remoteStorage December 2014
Fielding et al., "Hypertext Transfer Protocol (HTTP/1.1):
Semantics and Content", RFC7231, June 2014.

[MEDIA-TYPES]
N. Freed, N. Borenstein, "Multipurpose Internet Mail Extensions
(MIME) Part Two: Media Types", RFC2046, November 1996.

[COND]
Fielding et al., "Hypertext Transfer Protocol (HTTP/1.1):
Conditional Requests", RFC7232, June 2014.
Expand All @@ -1048,17 +1044,17 @@ Internet-Draft remoteStorage December 2014
[SPDY]
Mark Belshe, Roberto Peon, "SPDY Protocol - Draft 3.1", http://
www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1,
September 2013.

[JSON-LD]
M. Sporny, G. Kellogg, M. Lanthaler, "JSON-LD 1.0", W3C


de Jong [Page 21]

Internet-Draft remoteStorage December 2014


September 2013.

[JSON-LD]
M. Sporny, G. Kellogg, M. Lanthaler, "JSON-LD 1.0", W3C
Proposed Recommendation,
http://www.w3.org/TR/2014/REC-json-ld-20140116/, January 2014.

Expand Down Expand Up @@ -1099,14 +1095,14 @@ Internet-Draft remoteStorage December 2014
Michiel B. de Jong
IndieHosters

Email: [email protected]

de Jong [Page 22]

Internet-Draft remoteStorage December 2014



Email: [email protected]
de Jong [Page 22]

Internet-Draft remoteStorage December 2014


F. Kooman
Expand Down Expand Up @@ -1145,6 +1141,10 @@ Internet-Draft remoteStorage December 2014










Expand Down
10 changes: 3 additions & 7 deletions source.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ Table of Contents
and further ancestor folders, using a strong validator [HTTP,
section 7.2].

If no Content-Type header was received as part of a PUT request,
or the value of the Content-Type header does not appear in the IANA
registry of MIME Media Types [MEDIA-TYPES], the server MAY refuse to
If not exactly one Content-Type header was received as part of a
PUT request, the Content-Type header value contains non-ASCII
characters, or it is unreasonably long, the server MAY refuse to
process the request, and instead respond with a descriptive error
message in the body, and a http response code from the 4xx range.

Expand Down Expand Up @@ -893,10 +893,6 @@ charset=UTF-8","Content-Length":106}}}
Fielding et al., "Hypertext Transfer Protocol (HTTP/1.1):
Semantics and Content", RFC7231, June 2014.

[MEDIA-TYPES]
N. Freed, N. Borenstein, "Multipurpose Internet Mail Extensions
(MIME) Part Two: Media Types", RFC2046, November 1996.

[COND]
Fielding et al., "Hypertext Transfer Protocol (HTTP/1.1):
Conditional Requests", RFC7232, June 2014.
Expand Down

0 comments on commit 1c25e44

Please sign in to comment.