src/server/daemon/protocol.c

changeset 21
627b09ee74e4
parent 14
b8bf95b39952
child 23
a2c8fc23c90e
equal deleted inserted replaced
20:7b235fa88008 21:627b09ee74e4
305 305
306 int request_header(char *name, char **value, Session *sn, Request *rq) { 306 int request_header(char *name, char **value, Session *sn, Request *rq) {
307 const pb_key *key = pblock_key(name); 307 const pb_key *key = pblock_key(name);
308 pb_param *pp = pblock_findkey(key, rq->headers); 308 pb_param *pp = pblock_findkey(key, rq->headers);
309 if(pp != NULL) { 309 if(pp != NULL) {
310 value = &pp->value; 310 *value = pp->value;
311 return REQ_PROCEED; 311 return REQ_PROCEED;
312 } else { 312 } else {
313 return REQ_ABORTED; 313 return REQ_ABORTED;
314 } 314 }
315 } 315 }

mercurial