| 983 | } |
| 984 | |
| 985 | static int send_continue_body(proxy_http_req_t *req) |
| 986 | { |
| 987 | int status; |
| 988 | |
| 989 | /* Send the request body (fully). */ |
| 990 | switch(req->rb_method) { |
| 991 | case RB_SPOOL_CL: |
| 992 | case RB_STREAM_CL: |
| 993 | case RB_STREAM_CHUNKED: |
| 994 | status = stream_reqbody(req); |
| 995 | break; |
| 996 | default: |
| 997 | /* Shouldn't happen */ |
| 998 | status = HTTP_INTERNAL_SERVER_ERROR; |
| 999 | break; |
| 1000 | } |
| 1001 | if (status != OK) { |
| 1002 | conn_rec *c = req->r->connection; |
| 1003 | ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, req->r, |
| 1004 | APLOGNO(10154) "pass request body failed " |
| 1005 | "to %pI (%s) from %s (%s) with status %i", |
| 1006 | req->backend->addr, |
| 1007 | req->backend->hostname ? req->backend->hostname : "", |
| 1008 | c->client_ip, c->remote_host ? c->remote_host : "", |
| 1009 | status); |
| 1010 | req->backend->close = 1; |
| 1011 | } |
| 1012 | return status; |
| 1013 | } |
| 1014 | |
| 1015 | static |
| 1016 | int ap_proxy_http_process_response(proxy_http_req_t *req) |
no test coverage detected