Skip to content

Conversation

@gjasny
Copy link
Collaborator

@gjasny gjasny commented Mar 6, 2017

No description provided.

@gjasny gjasny requested a review from jupp0r March 6, 2017 20:38
namespace detail {
class CounterBuilder {
public:
friend CounterBuilder BuildCounter();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

"Content-Type: %s\r\n",
content_type.c_str());
mg_printf(conn, "Content-Length: %lu\r\n\r\n", body.size());
mg_printf(conn, "Content-Length: %lu\r\n\r\n", static_cast<unsigned long>(body.size()));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try mg_printf(conn, "Content-Length: %zu\r\n\r\n", body.size()); ?

@jupp0r jupp0r merged commit 2027424 into jupp0r:master Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants