diff options
author | Sverker Eriksson <[email protected]> | 2013-01-30 14:37:14 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-02-06 15:24:50 +0100 |
commit | 92ffb924556e43e3037273754ea94aabc72638a6 (patch) | |
tree | b59f45818c2d9dbdc8230c02d21e0df3acb6ccef /erts/doc/src/erlang.xml | |
parent | 68b804f34d4ec420d86953e3f519179a40fbee8f (diff) | |
download | otp-92ffb924556e43e3037273754ea94aabc72638a6.tar.gz otp-92ffb924556e43e3037273754ea94aabc72638a6.tar.bz2 otp-92ffb924556e43e3037273754ea94aabc72638a6.zip |
erts: Increase length of well formed header names from {packet,http}
To ease matching of unrecognized header field names we convert them
from case insensitive to the format Sec-Websocket-Version
with capital letters only first and after hyphens.
Earlier only header names up to 20 characters were converted to this
format due to internal buffer limitation. Raising this limit to 50
is a pragmatic solution for existing long header names such as
Sec-Websocket-Version, while valid header names longer than 50 characters
are not very probable.
Diffstat (limited to 'erts/doc/src/erlang.xml')
-rw-r--r-- | erts/doc/src/erlang.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index b336a135e7..7804a7498e 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -592,7 +592,9 @@ false</pre> request, a response, a header or an end of header mark. Invalid lines are returned as <c><anno>HttpError</anno></c>.</p> <p>Recognized request methods and header fields are returned as atoms. - Others are returned as strings.</p> + Others are returned as strings. Strings of unrecognized header fields + are formatted with only capital letters first and after hyphen characters + (like <c>"Sec-Websocket-Key"</c>).</p> <p>The protocol type <c>http</c> should only be used for the first line when a <c><anno>HttpRequest</anno></c> or a <c><anno>HttpResponse</anno></c> is expected. The following calls |