Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

have a error when i compile source #62

Open
killerfox opened this issue Oct 24, 2017 · 1 comment
Open

have a error when i compile source #62

killerfox opened this issue Oct 24, 2017 · 1 comment

Comments

@killerfox
Copy link

have a error in when compile source

error source(qhttpserver-master\http-parser\http_parser.c):
int hasBody = parser->flags & F_CHUNKED ||
(parser->content_length > 0 && parser->content_length != ULLONG_MAX);
if (parser->upgrade && (parser->method == HTTP_CONNECT ||
(parser->flags & F_SKIPBODY) || !hasBody)) {
/* Exit, the rest of the message is in a different protocol. */
UPDATE_STATE(NEW_MESSAGE());
CALLBACK_NOTIFY(message_complete);
RETURN((p - data) + 1);
}
the reason of error:
Error: C2143: syntax error : missing ';' before 'type'
Error: C2065: 'hasBody' : undeclared identifier

@nikhilm
Copy link
Owner

nikhilm commented Oct 24, 2017

Could you format the code in code tags and add line numbers? Without that it is hard to say where the error is. How are you compiling this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants