Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix old references to on_path

  • Loading branch information...
commit b4fc777dc661d49fd997970e89c355d674f3277b 1 parent 02f06ff
Peter Faiman authored bnoordhuis committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.md
  2. +1 −1  http_parser.h
View
2  README.md
@@ -36,7 +36,7 @@ using `http_parser_init()` and set the callbacks. That might look something
like this for a request parser:
http_parser_settings settings;
- settings.on_path = my_path_callback;
+ settings.on_url = my_url_callback;
settings.on_header_field = my_header_field_callback;
/* ... */
View
2  http_parser.h
@@ -77,7 +77,7 @@ typedef struct http_parser_settings http_parser_settings;
* chunked' headers that indicate the presence of a body.
*
* http_data_cb does not return data chunks. It will be call arbitrarally
- * many times for each string. E.G. you might get 10 callbacks for "on_path"
+ * many times for each string. E.G. you might get 10 callbacks for "on_url"
* each providing just a few characters more data.
*/
typedef int (*http_data_cb) (http_parser*, const char *at, size_t length);
Please sign in to comment.
Something went wrong with that request. Please try again.