summaryrefslogtreecommitdiff
path: root/deps/http_parser/README.md
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-09 13:49:03 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-11-09 15:02:18 -0800
commit8285f1286444718a3f1a9ff44290d0dfeccb0266 (patch)
tree8cb56e383b41b0867f39664cd4bdc646bad51bfc /deps/http_parser/README.md
parentc6029c75a4636099fc35f2e0b904385dda58eb1f (diff)
downloadnode-new-8285f1286444718a3f1a9ff44290d0dfeccb0266.tar.gz
Upgrade http-parser
Diffstat (limited to 'deps/http_parser/README.md')
-rw-r--r--deps/http_parser/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/http_parser/README.md b/deps/http_parser/README.md
index 2ac56f87a7..72332fb35b 100644
--- a/deps/http_parser/README.md
+++ b/deps/http_parser/README.md
@@ -39,10 +39,10 @@ like this for a request parser:
settings.on_path = my_path_callback;
settings.on_header_field = my_header_field_callback;
/* ... */
- settings.data = my_socket;
http_parser *parser = malloc(sizeof(http_parser));
http_parser_init(parser, HTTP_REQUEST);
+ parser->data = my_socket;
When data is received on the socket execute the parser and check for errors.