diff options
Diffstat (limited to 'plugins/picohttpparser')
| -rw-r--r-- | plugins/picohttpparser/picohttpparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/picohttpparser/picohttpparser.c b/plugins/picohttpparser/picohttpparser.c index d9680b79..d0bfac62 100644 --- a/plugins/picohttpparser/picohttpparser.c +++ b/plugins/picohttpparser/picohttpparser.c | |||
| @@ -400,7 +400,7 @@ int phr_parse_request(const char *buf_start, size_t len, const char **method, si | |||
| 400 | *num_headers = 0; | 400 | *num_headers = 0; |
| 401 | 401 | ||
| 402 | /* if last_len != 0, check if the request is complete (a fast countermeasure | 402 | /* if last_len != 0, check if the request is complete (a fast countermeasure |
| 403 | againt slowloris */ | 403 | against slowloris */ |
| 404 | if (last_len != 0 && is_complete(buf, buf_end, last_len, &r) == NULL) { | 404 | if (last_len != 0 && is_complete(buf, buf_end, last_len, &r) == NULL) { |
| 405 | return r; | 405 | return r; |
| 406 | } | 406 | } |
| @@ -435,7 +435,7 @@ static const char *parse_response(const char *buf, const char *buf_end, int *maj | |||
| 435 | } | 435 | } |
| 436 | PARSE_INT_3(status); | 436 | PARSE_INT_3(status); |
| 437 | 437 | ||
| 438 | /* get message includig preceding space */ | 438 | /* get message including preceding space */ |
| 439 | if ((buf = get_token_to_eol(buf, buf_end, msg, msg_len, ret)) == NULL) { | 439 | if ((buf = get_token_to_eol(buf, buf_end, msg, msg_len, ret)) == NULL) { |
| 440 | return NULL; | 440 | return NULL; |
| 441 | } | 441 | } |
