src/server/daemon/httprequest.c

changeset 624
e051cb8398cf
parent 623
53b31a734cd1
child 626
c5ee5c4f8f03
equal deleted inserted replaced
623:53b31a734cd1 624:e051cb8398cf
343 (int)absPath.length, 343 (int)absPath.length,
344 absPath.ptr); 344 absPath.ptr);
345 request->status = 400; 345 request->status = 400;
346 return 1; 346 return 1;
347 //pblock_kvinsert(pb_key_uri, "/", 1, rq->rq.reqpb); 347 //pblock_kvinsert(pb_key_uri, "/", 1, rq->rq.reqpb);
348 } 348
349 349 // TODO: remove this debug code
350 char tmp_file_path[128];
351 snprintf(tmp_file_path, 128, "logs/req_uri_fail_%lld", (long long int)time(NULL));
352 FILE *f = fopen(tmp_file_path, "w");
353 fwrite(request->netbuf->inbuf, 1, request->netbuf->pos, f);
354 fclose(f);
355 }
356
350 // pass http header to the NSAPI request structure 357 // pass http header to the NSAPI request structure
351 int hlen = request->headers->len; 358 int hlen = request->headers->len;
352 HeaderArray *ha = request->headers; 359 HeaderArray *ha = request->headers;
353 for(int i=0;i<=hlen;i++) { 360 for(int i=0;i<=hlen;i++) {
354 if(i == hlen) { 361 if(i == hlen) {

mercurial