/*
- * $Id: http.cc,v 1.460 2005/09/28 19:52:52 wessels Exp $
+ * $Id: http.cc,v 1.461 2005/09/28 20:26:27 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
if (httpState == NULL)
return;
- if (httpState->body_buf) {
+ if (httpState->request_body_buf) {
if (httpState->orig_request->body_connection.getRaw()) {
clientAbortBody(httpState->orig_request);
}
- if (httpState->body_buf) {
- memFree(httpState->body_buf, MEM_8K_BUF);
- httpState->body_buf = NULL;
+ if (httpState->request_body_buf) {
+ memFree(httpState->request_body_buf, MEM_8K_BUF);
+ httpState->request_body_buf = NULL;
}
}
httpRequestBodyHandler(char *buf, ssize_t size, void *data)
{
HttpStateData *httpState = (HttpStateData *) data;
- httpState->body_buf = NULL;
+ httpState->request_body_buf = NULL;
if (size > 0) {
if (httpState->flags.headers_parsed && !httpState->flags.abuse_detected) {
return;
}
- httpState->body_buf = (char *)memAllocate(MEM_8K_BUF);
- clientReadBody(httpState->orig_request, httpState->body_buf, 8192, httpRequestBodyHandler, httpState);
+ httpState->request_body_buf = (char *)memAllocate(MEM_8K_BUF);
+ clientReadBody(httpState->orig_request, httpState->request_body_buf, 8192, httpRequestBodyHandler, httpState);
}
void
/*
- * $Id: http.h,v 1.13 2005/08/19 17:03:28 wessels Exp $
+ * $Id: http.h,v 1.14 2005/09/28 20:26:27 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
int fd;
http_state_flags flags;
FwdState *fwd;
- char *body_buf;
+ char *request_body_buf;
off_t currentOffset;
size_t read_sz;
char buf[SQUID_TCP_SO_RCVBUF];