mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-18 02:38:27 +00:00
Format code
This commit is contained in:
parent
6f8f51496d
commit
d599a36c2a
1 changed files with 2 additions and 4 deletions
|
@ -154,7 +154,7 @@ typedef std::function<bool(const char *data, size_t data_length, size_t offset,
|
||||||
typedef std::function<bool(uint64_t current, uint64_t total)> Progress;
|
typedef std::function<bool(uint64_t current, uint64_t total)> Progress;
|
||||||
|
|
||||||
struct Response;
|
struct Response;
|
||||||
typedef std::function<bool(const Response& response)> ResponseHandler;
|
typedef std::function<bool(const Response &response)> ResponseHandler;
|
||||||
|
|
||||||
struct MultipartFile {
|
struct MultipartFile {
|
||||||
std::string filename;
|
std::string filename;
|
||||||
|
@ -2884,9 +2884,7 @@ inline bool Client::process_request(Stream &strm, const Request &req,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.response_handler) {
|
if (req.response_handler) {
|
||||||
if(!req.response_handler(res)) {
|
if (!req.response_handler(res)) { return false; }
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Body
|
// Body
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue