Skip to content

Commit eacf3c8

Browse files
committed
Unset Content-Length
1 parent 7842b50 commit eacf3c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cgi/mapcache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ static void fcgi_write_response(mapcache_context_fcgi *ctx, mapcache_http_respon
126126
int i;
127127
for(i=0; i<elts->nelts; i++) {
128128
apr_table_entry_t entry = APR_ARRAY_IDX(elts,i,apr_table_entry_t);
129-
if (!strcasecmp(entry.key, "Content-Type")) {
130129
printf("%s: %s\r\n", entry.key, entry.val);
131-
}
132130
}
133131
}
134132
if(response->mtime) {
@@ -372,6 +370,8 @@ int main(int argc, const char **argv)
372370
} else if( request->type == MAPCACHE_REQUEST_PROXY ) {
373371
mapcache_request_proxy *req_proxy = (mapcache_request_proxy*)request;
374372
http_response = mapcache_core_proxy_request(ctx, req_proxy);
373+
// Content-Length is added again in fcgi_write_response
374+
apr_table_unset(http_response->headers, "Content-Length");
375375
} else if( request->type == MAPCACHE_REQUEST_GET_MAP) {
376376
mapcache_request_get_map *req_map = (mapcache_request_get_map*)request;
377377
http_response = mapcache_core_get_map(ctx,req_map);

0 commit comments

Comments
 (0)