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

cannot get the body data #61

Open
icesword001 opened this issue Sep 20, 2017 · 2 comments
Open

cannot get the body data #61

icesword001 opened this issue Sep 20, 2017 · 2 comments

Comments

@icesword001
Copy link

the body has been empty

@nikhilm
Copy link
Owner

nikhilm commented Oct 4, 2017

Please describe the situation more and show a sample of your code. qhttpserver is streaming, so it has to be used correctly (listen to the right events) to be able to access the body.

@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

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

3 participants