From 92ffb924556e43e3037273754ea94aabc72638a6 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 30 Jan 2013 14:37:14 +0100 Subject: 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. --- erts/doc/src/erlang.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'erts/doc') 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 request, a response, a header or an end of header mark. Invalid lines are returned as HttpError.

Recognized request methods and header fields are returned as atoms. - Others are returned as strings.

+ Others are returned as strings. Strings of unrecognized header fields + are formatted with only capital letters first and after hyphen characters + (like "Sec-Websocket-Key").

The protocol type http should only be used for the first line when a HttpRequest or a HttpResponse is expected. The following calls -- cgit v1.2.3