/*
- * $Id: client_side.cc,v 1.454 1999/05/10 19:45:55 wessels Exp $
+ * $Id: client_side.cc,v 1.455 1999/05/11 18:51:47 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
err = errorCon(ERR_UNSUP_REQ, HTTP_NOT_IMPLEMENTED);
err->src_addr = conn->peer.sin_addr;
err->request = requestLink(request);
+ request->flags.proxy_keepalive = 0;
http->al.http.code = err->http_status;
http->entry = clientCreateStoreEntry(http, request->method, null_request_flags);
errorAppendEntry(http->entry, err);
*/
if (request->body_sz < cont_len)
commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0);
- if (cont_len > Config.maxRequestBodySize) {
+ if (cont_len < 0)
+ (void) 0;
+ else if (cont_len > Config.maxRequestBodySize) {
err = errorCon(ERR_TOO_BIG, HTTP_REQUEST_ENTITY_TOO_LARGE);
err->request = requestLink(request);
http->entry = clientCreateStoreEntry(http,