Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/http_response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ namespace details

ssize_t cb(void* cls, uint64_t pos, char* buf, size_t max)
{
ssize_t val = static_cast<http_response*>(cls)->cycle_callback(buf);
ssize_t val = static_cast<http_response*>(cls)->cycle_callback(buf, max);
if(val == -1)
static_cast<http_response*>(cls)->completed = true;
return val;
Expand Down
2 changes: 1 addition & 1 deletion src/httpserver/http_response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class bad_caching_attempt: public std::exception
}
};

typedef ssize_t(*cycle_callback_ptr)(const std::string&);
typedef ssize_t(*cycle_callback_ptr)(char*, size_t);

/**
* Class representing an abstraction for an Http Response. It is used from classes using these apis to send information through http protocol.
Expand Down