src/server/daemon/protocol.c

changeset 415
d938228c382e
parent 251
f727a21497bb
child 432
7c9137f9e7f9
equal deleted inserted replaced
414:99a34860c105 415:d938228c382e
56 } 56 }
57 57
58 58
59 /* 59 /*
60 * http_status_message from Open Webserver (frame/http.cpp) 60 * http_status_message from Open Webserver (frame/http.cpp)
61 * TODO: replace, use sstr_t 61 * TODO: replace, use cxmutstr
62 */ 62 */
63 NSAPI_PUBLIC const char * protocol_status_message (int code) 63 NSAPI_PUBLIC const char * protocol_status_message (int code)
64 { 64 {
65 WS_ASSERT(code > 0); 65 WS_ASSERT(code > 0);
66 66
377 return 0; 377 return 0;
378 } 378 }
379 379
380 int http_send_continue(Session *sn) { 380 int http_send_continue(Session *sn) {
381 NSAPISession *s = (NSAPISession*)sn; 381 NSAPISession *s = (NSAPISession*)sn;
382 sstr_t msg = S("HTTP/1.1 100 Continue\r\n\r\n"); 382 cxstring msg = CX_STR("HTTP/1.1 100 Continue\r\n\r\n");
383 int w = s->connection->write(s->connection, msg.ptr, msg.length); 383 int w = s->connection->write(s->connection, msg.ptr, msg.length);
384 if(w != msg.length) { 384 if(w != msg.length) {
385 return 1; 385 return 1;
386 } 386 }
387 return 0; 387 return 0;

mercurial