- Timestamp:
- 05/06/09 14:51:49 (4 years ago)
- Files:
-
- 1 modified
-
lang/c/tdserver/trunk/tdserver.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/tdserver/trunk/tdserver.c
r33093 r33094 460 460 readcgiparam(pstr?pstr:"",pmap); 461 461 const char *query = tcmapget2(pmap, "q"); 462 if( strlen(query)==0) query = NULL;462 if( query && strlen(query)==0 ) query = NULL; 463 463 int ksiz; 464 464 char *kbuf = tcurldecode(uri, &ksiz); … … 474 474 int len = strlen(val); 475 475 tcxstrprintf(xstr, "HTTP/1.1 200 OK\r\n"); 476 tcxstrprintf(xstr, "Content-Type: application/octet-stream\r\n");476 tcxstrprintf(xstr, "Content-Type: text/plain\r\n"); 477 477 tcxstrprintf(xstr, "Content-Length: %d\r\n", len); 478 478 tcxstrprintf(xstr, "X-TD-Time: %.6f\r\n", sptime); … … 614 614 readcgiparam(pstr?pstr:"",pmap); 615 615 const char *query = tcmapget2(pmap, "q"); 616 if( strlen(query)==0) query = NULL;616 if( query && strlen(query)==0 ) query = NULL; 617 617 int ksiz; 618 618 char *kbuf = tcurldecode(uri, &ksiz);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)