diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-09-18 19:47:04 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-09-26 16:01:26 +0300 |
commit | 921b183abf68f49476fc3f4e597f5949dcc5e62d (patch) | |
tree | b82f233c6cc9db2a0db716977ce345312d6815dc /src/microhttpd/internal.h | |
parent | 7a638aed1ba061285d57643eee5e4efa629d1449 (diff) | |
download | libmicrohttpd-921b183abf68f49476fc3f4e597f5949dcc5e62d.tar.gz libmicrohttpd-921b183abf68f49476fc3f4e597f5949dcc5e62d.zip |
Refactoring: store "request target" original length
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 96178169..512e313f 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -970,10 +970,6 @@ struct MHD_RequestLineProcessing | |||
970 | */ | 970 | */ |
971 | char *rq_tgt; | 971 | char *rq_tgt; |
972 | /** | 972 | /** |
973 | * The length of the @a rq_tgt, not including terminating zero. | ||
974 | */ | ||
975 | size_t rq_tgt_len; | ||
976 | /** | ||
977 | * The pointer to the first question mark in the @a rq_tgt. | 973 | * The pointer to the first question mark in the @a rq_tgt. |
978 | */ | 974 | */ |
979 | char *rq_tgt_qmark; | 975 | char *rq_tgt_qmark; |
@@ -1085,6 +1081,11 @@ struct MHD_Request | |||
1085 | size_t url_len; | 1081 | size_t url_len; |
1086 | 1082 | ||
1087 | /** | 1083 | /** |
1084 | * The original length of the request target. | ||
1085 | */ | ||
1086 | size_t req_target_len; | ||
1087 | |||
1088 | /** | ||
1088 | * Linked list of parsed headers. | 1089 | * Linked list of parsed headers. |
1089 | */ | 1090 | */ |
1090 | struct MHD_HTTP_Req_Header *headers_received; | 1091 | struct MHD_HTTP_Req_Header *headers_received; |