mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
http: allow longer HTTP/2 request method names
- Increase the maximum request method name length from 11 to 23. For HTTP/1.1 and earlier there's not a specific limit in libcurl for method length except that it is limited by the initial HTTP request limit (DYN_HTTP_REQUEST). Prior tofc2f1e54
HTTP/2 was treated the same and there was no specific limit. According to Internet Assigned Numbers Authority (IANA) the longest registered method is UPDATEREDIRECTREF which is 17 characters. Also there are unregistered methods used by some companies that are longer than 11 characters. The limit was originally added by61f52a97
but not used untilfc2f1e54
. Ref: https://www.iana.org/assignments/http-methods/http-methods.xhtml Closes https://github.com/curl/curl/pull/12311
This commit is contained in:
parent
cdac7cd3f3
commit
26e5424ca8
@ -263,7 +263,7 @@ CURLcode Curl_http_decode_status(int *pstatus, const char *s, size_t len);
|
||||
* All about a core HTTP request, excluding body and trailers
|
||||
*/
|
||||
struct httpreq {
|
||||
char method[12];
|
||||
char method[24];
|
||||
char *scheme;
|
||||
char *authority;
|
||||
char *path;
|
||||
|
Loading…
Reference in New Issue
Block a user