We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d3b00c commit 9fccb18Copy full SHA for 9fccb18
1 file changed
httpserver.h
@@ -887,6 +887,7 @@ int assign_iteration_headers(
887
int* iter
888
) {
889
http_token_t token = request->tokens.buf[*iter];
890
+ if (request->tokens.buf[*iter].type == HTTP_BODY) return 0;
891
*key = (http_string_t) {
892
.buf = &request->buf[token.index],
893
.len = token.len
@@ -897,7 +898,6 @@ int assign_iteration_headers(
897
898
899
900
};
- if (request->tokens.buf[*iter + 1].type == HTTP_BODY) return 0;
901
return 1;
902
}
903
0 commit comments