Skip to content

Commit 2d0093e

Browse files
author
Sebastiano Merlino
committed
2 parents dafcc65 + 828e47b commit 2d0093e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/http_response.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ namespace details
207207

208208
ssize_t cb(void* cls, uint64_t pos, char* buf, size_t max)
209209
{
210-
ssize_t val = static_cast<http_response*>(cls)->cycle_callback(buf);
210+
ssize_t val = static_cast<http_response*>(cls)->cycle_callback(buf, max);
211211
if(val == -1)
212212
static_cast<http_response*>(cls)->completed = true;
213213
return val;

src/httpserver/http_response.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class bad_caching_attempt: public std::exception
6262
}
6363
};
6464

65-
typedef ssize_t(*cycle_callback_ptr)(const std::string&);
65+
typedef ssize_t(*cycle_callback_ptr)(char*, size_t);
6666

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

0 commit comments

Comments
 (0)