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; |