s->willclose = 0;
s->end_chunked_post = 0;
s->end_header = 0;
+#if CONFIG_ZLIB
+ s->compressed = 0;
+#endif
if (post && !s->post_data && !send_expect_100) {
/* Pretend that it did work. We didn't read any header yet, since
* we've still to send the POST data, but the code calling this
}
if (len > 0) {
s->off += len;
- if (s->chunksize > 0) {
+ if (s->chunksize > 0 && s->chunksize != UINT64_MAX) {
av_assert0(s->chunksize >= len);
s->chunksize -= len;
}