src/server/daemon/protocol.c

branch
webdav
changeset 235
4990147c58d0
parent 141
ff311b63c3af
child 251
f727a21497bb
equal deleted inserted replaced
234:f30740c3aafb 235:4990147c58d0
375 rq->senthdrs = 1; 375 rq->senthdrs = 1;
376 376
377 return 0; 377 return 0;
378 } 378 }
379 379
380 int http_send_continue(Session *sn) {
381 NSAPISession *s = (NSAPISession*)sn;
382 sstr_t msg = S("HTTP/1.1 100 Continue\r\n\r\n");
383 int w = s->connection->write(s->connection, msg.ptr, msg.length);
384 if(w != msg.length) {
385 return 1;
386 }
387 return 0;
388 }
389
380 int request_header(char *name, char **value, Session *sn, Request *rq) { 390 int request_header(char *name, char **value, Session *sn, Request *rq) {
381 const pb_key *key = pblock_key(name); 391 const pb_key *key = pblock_key(name);
382 pb_param *pp = pblock_findkey(key, rq->headers); 392 pb_param *pp = pblock_findkey(key, rq->headers);
383 if(pp != NULL) { 393 if(pp != NULL) {
384 *value = pp->value; 394 *value = pp->value;

mercurial