src/server/safs/cgi.c

changeset 503
aeaf7db26fac
parent 502
11ac3761c0e3
child 516
ec22d4ccd081
equal deleted inserted replaced
502:11ac3761c0e3 503:aeaf7db26fac
55 int send_cgi(pblock *pb, Session *sn, Request *rq) { 55 int send_cgi(pblock *pb, Session *sn, Request *rq) {
56 char *path = pblock_findkeyval(pb_key_path, rq->vars); 56 char *path = pblock_findkeyval(pb_key_path, rq->vars);
57 char *ctlen = pblock_findkeyval(pb_key_content_length, rq->headers); 57 char *ctlen = pblock_findkeyval(pb_key_content_length, rq->headers);
58 int64_t content_length = 0; 58 int64_t content_length = 0;
59 59
60 log_ereport(LOG_DEBUG, "cgi-send: path: %s content-length: %s", path, ctlen);
61
60 if(ctlen) { 62 if(ctlen) {
61 if(!util_strtoint(ctlen, &content_length)) { 63 if(!util_strtoint(ctlen, &content_length)) {
62 log_ereport( 64 log_ereport(
63 LOG_FAILURE, 65 LOG_FAILURE,
64 "send-cgi: content-length header is not an integer"); 66 "send-cgi: content-length header is not an integer");

mercurial