Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

readme typo (thanks tmm1)

  • Loading branch information...
commit 047ced37841b7f42b9254bce2b2e5e6b95cb7ef8 1 parent a66c61c
@ry ry authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.