mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Cleared up parse_field() synopsis.
This commit is contained in:
parent
3dc4ce1216
commit
0c1ff8a258
|
@ -850,10 +850,12 @@ static void default_reply(struct connection *conn,
|
||||||
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------
|
||||||
* Parses a single HTTP request field. If the specified field doesn't exist,
|
* Parses a single HTTP request field. Returns string from end of [field] to
|
||||||
* returns NULL. Otherwise, you need to remember to deallocate the result.
|
* first \r, \n or end of request string. Returns NULL if [field] can't be
|
||||||
|
* matched.
|
||||||
*
|
*
|
||||||
* eg. "Referer: moo" with field="Referer: " returns "moo"
|
* You need to remember to deallocate the result.
|
||||||
|
* example: parse_field(conn, "Referer: ");
|
||||||
*/
|
*/
|
||||||
static char *parse_field(const struct connection *conn, const char *field)
|
static char *parse_field(const struct connection *conn, const char *field)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user