Browse files

readme typo (thanks tmm1)

  • Loading branch information...
1 parent a66c61c commit 047ced37841b7f42b9254bce2b2e5e6b95cb7ef8 @ry ry committed Oct 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 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.

0 comments on commit 047ced3

Please sign in to comment.