From 047ced37841b7f42b9254bce2b2e5e6b95cb7ef8 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 20 Oct 2010 09:50:41 -0700 Subject: [PATCH] readme typo (thanks tmm1) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ac56f8..72332fb 100644 --- a/README.md +++ b/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.