Commit 285deaaf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't put chunked headers in the esi-specification, we won't need them.

parent 702f6401
......@@ -211,7 +211,7 @@ ved_pretend_gzip(const struct sess *sp, const uint8_t *p, ssize_t l)
/*---------------------------------------------------------------------
*/
static const char gzip_hdr[] = {
static const uint8_t gzip_hdr[] = {
0x1f, 0x8b, 0x08,
0x00, 0x00, 0x00, 0x00,
0x00,
......@@ -291,8 +291,6 @@ ESI_Deliver(struct sess *sp)
case VEC_V8:
l = ved_decode_len(&p);
r = p;
q = (void*)strchr((const char*)p, '\0');
p = q + 1;
if (isgzip) {
assert(*p == VEC_C1 || *p == VEC_C2 ||
*p == VEC_C8);
......
......@@ -287,8 +287,6 @@ vep_emit_verbatim(const struct vep_state *vep, ssize_t l, ssize_t l_crc)
Debug("---> VERBATIM(%jd)\n", (intmax_t)l);
}
vep_emit_len(vep, l, VEC_V1, VEC_V2, VEC_V8);
/* Emit Chunked header */
vsb_printf(vep->vsb, "%lx\r\n%c", l, 0);
if (vep->dogzip) {
vep_emit_len(vep, l_crc, VEC_C1, VEC_C2, VEC_C8);
vbe32enc(buf, vep->crc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment