Cleared up parse_field() synopsis.

This commit is contained in:
Emil Mikulic 2003-06-06 21:08:54 +00:00
parent 3dc4ce1216
commit 0c1ff8a258

View File

@ -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)
{ {