After testing the server in https://github.com/zchunk/zchunk/issues/40, I
found that it doesn't start with "\r\n", so let's make that part optional
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
/* Response should include content-type, but we only need the range, so
* wildcard out the content-type */
- char *next = "\r\n--%s\r\n.*" \
+ char *next = "\r?\n?--%s\r\n.*" \
"content-range: *bytes *([0-9]+) *- *([0-9]+) */[0-9]+";
char *end = "\r\n--%s--";
char *regex_n = add_boundary_to_regex(dl->zck, next, dl->boundary);