mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07: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;
|
||||
|
||||
struct Response;
|
||||
typedef std::function<bool(const Response& response)> ResponseHandler;
|
||||
typedef std::function<bool(const Response &response)> ResponseHandler;
|
||||
|
||||
struct MultipartFile {
|
||||
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(res)) {
|
||||
return false;
|
||||
}
|
||||
if (!req.response_handler(res)) { return false; }
|
||||
}
|
||||
|
||||
// Body
|
||||
|
|
Loading…
Reference in a new issue