Request: unlink request node from cs->request_lists

Signed-off-by: Eduardo Silva <eduardo@monkey.io>

Conflicts:
	src/mk_request.c
Request: set correct path size when truncated

If snprintf can't write the entire string out to the buffer, it will
still null-terminate it. Hence, the length of the string is one less
than the maximum passed in, not the maximum itself.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Mimetype: don't iterate off the start of the filename when looking for an extension

Check the iterator position before checking for an extension.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Method: correctly extract content length value from body buffer when pre-parsing

The buffer offset and the end position passed to mk_string_copy_substr
is incorrect.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Request: don't search off the end of the body buffer for query strings

mk_string_char_search takes a length, not an end position.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Utils: allocate enough space to include the null terminator when URL-decoding URLs

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Eduardo Silva <eduardo@monkey.io>