Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a stupid mistake where I copied "Characterd below 037" from Rac…

…k spec and Paste.lint and thought it's chr(37). Obviously not.
  • Loading branch information...
commit ee917ff6409d4dd82cb197b6507531d035c5021d 1 parent dc1543b
@miyagawa miyagawa authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 PSGI.pod
View
8 PSGI.pod
@@ -387,10 +387,10 @@ The header B<MUST NOT> contain a key named C<Status>, nor any keys with C<:>
or newlines in their name. It B<MUST NOT> contain any keys that end in C<-> or
C<_>.
-All keys B<MUST> consist only of letters, digits, C<_> or C<->. All keys
-B<MUST> start with a letter. The value of the header must be a scalar
-string. The value string B<MUST NOT> contain characters below ASCII chr(37)
-except for chr(32) (whitespace).
+All keys B<MUST> consist only of letters, digits, C<_> or C<->. All
+keys B<MUST> start with a letter. The value of the header must be a
+scalar string. The value string B<MUST NOT> contain characters below
+characters below octet 037 i.e. chr(31).

"characters below characters below"?

...oh, you caught it already. nm

@miyagawa Owner
miyagawa added a note

already fixed :)

@chansen
chansen added a note

What about DEL (octal 177 dec 127)? Perhaps it would be better to rephrase is to something like:

The value string B<MUST NOT> contain any ASCII control characters (C<chr(0..31,127)>).

@miyagawa Owner
miyagawa added a note

Good question, but doesn't seem to be in the Rack spec and paste.lint.
http://rack.rubyforge.org/doc/files/SPEC.html
http://pythonpaste.org/modules/lint.html

@chansen
chansen added a note

RFC 2616 doesn't permit any ASCII control characters except LWS [1] in field-content.

[1] Actually 2616 permits escaped control characters in quoted strings, but httpbis wg has altered the rule to not permit it. http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-14#section-1.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
If the same key name appears multiple times in an array ref, those
header lines B<MUST> be sent to the client separately (e.g. multiple
Please sign in to comment.
Something went wrong with that request. Please try again.