Stuff
This commit is contained in:
@@ -52,11 +52,11 @@ const char *http_header_list_search(HTTPHeaderList *list, const char *key, const
|
||||
}
|
||||
|
||||
#define MAX_REQUEST_LENGTH 16384
|
||||
#define MAX_METHOD_LENGTH 16
|
||||
#define MAX_URI_LENGTH 256
|
||||
#define MAX_METHOD_LENGTH 8
|
||||
#define MAX_URI_LENGTH 64
|
||||
#define MAX_VERSION_LENGTH 3
|
||||
#define MAX_HEADER_KEY_LENGTH 2048
|
||||
#define MAX_HEADER_VALUE_LENGTH 2048
|
||||
#define MAX_HEADER_KEY_LENGTH 128
|
||||
#define MAX_HEADER_VALUE_LENGTH 128
|
||||
|
||||
#define RETURN_IF_READ_ERROR(s) \
|
||||
if (ferror((s))) { \
|
||||
@@ -76,7 +76,7 @@ static HTTPRequestParseResult parse_method_uri_line(
|
||||
#define S(s) S1(s)
|
||||
int nconv = fscanf(stream,
|
||||
// clang-format off
|
||||
"%" S(MAX_METHOD_LENGTH) "[A-Z0-9]"
|
||||
"%" S(MAX_METHOD_LENGTH) "[a-zA-Z]"
|
||||
"%c"
|
||||
"%" S(MAX_URI_LENGTH) "[^ \n\r]"
|
||||
"%c"
|
||||
|
||||
Reference in New Issue
Block a user