src/server/daemon/httprequest.c

changeset 115
51d9a15eac98
parent 114
c3a0f1275d71
child 116
d7a186cf87f6
equal deleted inserted replaced
114:c3a0f1275d71 115:51d9a15eac98
291 // check for request body and prepare input buffer 291 // check for request body and prepare input buffer
292 char *ctlen_str = pblock_findkeyval(pb_key_content_length, rq->rq.headers); 292 char *ctlen_str = pblock_findkeyval(pb_key_content_length, rq->rq.headers);
293 if(ctlen_str) { 293 if(ctlen_str) {
294 int ctlen = atoi(ctlen_str); 294 int ctlen = atoi(ctlen_str);
295 295
296 printf("request body length: %d\n", ctlen); 296 //printf("request body length: %d\n", ctlen);
297 297
298 netbuf *nb = request->netbuf; 298 netbuf *nb = request->netbuf;
299 299
300 // create new netbuf 300 // create new netbuf
301 HttpStream *net_io = (HttpStream*)httpstream_new(pool, io); 301 HttpStream *net_io = (HttpStream*)httpstream_new(pool, io);
563 name = pblock_findkeyval(pb_key_name, rq->rq.vars); 563 name = pblock_findkeyval(pb_key_name, rq->rq.vars);
564 ppath = pblock_findkeyval(pb_key_ppath, rq->rq.vars); 564 ppath = pblock_findkeyval(pb_key_ppath, rq->rq.vars);
565 565
566 // add additional objects to the objset 566 // add additional objects to the objset
567 if(add_objects(objconf, objset, sn, rq, name, ppath) == REQ_ABORTED) { 567 if(add_objects(objconf, objset, sn, rq, name, ppath) == REQ_ABORTED) {
568 fprintf(stderr, "add_objects failed\n"); 568 log_ereport(LOG_FAILURE, "add_objects failed");
569 return REQ_ABORTED; 569 return REQ_ABORTED;
570 } 570 }
571 571
572 if(ret != REQ_NOACTION) { 572 if(ret != REQ_NOACTION) {
573 /* 573 /*

mercurial