src/server/daemon/httprequest.c

changeset 591
d703055a1af7
parent 579
e10457d74fe1
child 614
eb1c4d464ecd
equal deleted inserted replaced
590:33ca0f9f276f 591:d703055a1af7
264 return 1; 264 return 1;
265 } else if(absPath.ptr[0] == '*') { 265 } else if(absPath.ptr[0] == '*') {
266 // TODO: implement global OPTIONS #71 266 // TODO: implement global OPTIONS #71
267 return 1; 267 return 1;
268 } 268 }
269 log_ereport(
270 LOG_DEBUG,
271 "req uri: {%.*s}",
272 (int)absPath.length,
273 absPath.ptr);
269 274
270 for(int i=0;i<request->uri.length;i++) { 275 for(int i=0;i<request->uri.length;i++) {
271 if(request->uri.ptr[i] == '?') { 276 if(request->uri.ptr[i] == '?') {
272 cxmutstr query; 277 cxmutstr query;
273 query.ptr = NULL; 278 query.ptr = NULL;
290 } 295 }
291 296
292 break; 297 break;
293 } 298 }
294 } 299 }
300 log_ereport(
301 LOG_DEBUG,
302 "req abs path: {%.*s}",
303 (int)absPath.length,
304 absPath.ptr);
295 305
296 // Get abs_path part of request URI, and canonicalize the path 306 // Get abs_path part of request URI, and canonicalize the path
297 cxmutstr orig_path = absPath; 307 cxmutstr orig_path = absPath;
298 absPath.ptr = util_canonicalize_uri( 308 absPath.ptr = util_canonicalize_uri(
299 pool, 309 pool,

mercurial