From b4fc777dc661d49fd997970e89c355d674f3277b Mon Sep 17 00:00:00 2001 From: Peter Faiman Date: Sun, 28 Oct 2012 13:23:13 -0700 Subject: [PATCH] fix old references to on_path --- README.md | 2 +- http_parser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3815e36..ef1bf6e 100644 --- a/README.md +++ b/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; /* ... */ diff --git a/http_parser.h b/http_parser.h index 7ea1097..98a20c0 100644 --- a/http_parser.h +++ b/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);