Add an example to test server concurrency.
This commit is contained in:
@@ -84,6 +84,10 @@ public:
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool compressed() const {
|
||||
return compressed_;
|
||||
}
|
||||
|
||||
#if WEBCC_ENABLE_GZIP
|
||||
|
||||
bool Compress() override;
|
||||
|
||||
+3
-1
@@ -55,7 +55,9 @@ bool StringBodyHandler::Finish() {
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
LOG_WARN("Compressed HTTP content remains untouched.");
|
||||
if (body->compressed()) {
|
||||
LOG_WARN("Compressed HTTP content remains untouched.");
|
||||
}
|
||||
#endif // WEBCC_ENABLE_GZIP
|
||||
|
||||
message_->SetBody(body, false);
|
||||
|
||||
Reference in New Issue
Block a user