Changeset 1537
- Timestamp:
- 01/28/2007 12:13:31 AM (21 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
connections.c (modified) (3 diffs)
-
mod_chunked.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/connections.c
r1536 r1537 333 333 } 334 334 335 if (con->request.http_method == HTTP_METHOD_HEAD) {336 no_response_body = 1;337 }338 339 335 if (no_response_body) { 340 336 /* disable chunked encoding again as we have no body */ … … 1234 1230 } 1235 1231 1232 /* all the response-headers are set, check if we have a */ 1233 1236 1234 connection_set_state(srv, con, CON_STATE_WRITE_RESPONSE_HEADER); 1237 1235 … … 1242 1240 1243 1241 connection_set_state(srv, con, CON_STATE_WRITE_RESPONSE_CONTENT); 1242 1243 if (con->request.http_method == HTTP_METHOD_HEAD) { 1244 /* remove the content now */ 1245 chunkqueue_reset(con->send); 1246 1247 con->send->is_closed = 1; 1248 } 1244 1249 1245 1250 break; -
trunk/src/mod_chunked.c
r1503 r1537 203 203 con->response.content_length = chunkqueue_length(in); 204 204 use_chunked = 0; 205 } else { 205 } else if (con->request.http_method != HTTP_METHOD_HEAD) { 206 /* a HEAD request never gets a chunk-encoding, but might stay with keep-alive 207 * in case the queue was closed already (above) we still have the content-length */ 208 206 209 /* we don't know the size of the content yet 207 210 * - either enable chunking

