Move mark from WebSockets down to HTTP
This commit is contained in:
@@ -55,10 +55,6 @@ public:
|
|||||||
httpContext->filter(std::move(filterHandler));
|
httpContext->filter(std::move(filterHandler));
|
||||||
}
|
}
|
||||||
|
|
||||||
void registerTag() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
~TemplatedApp() {
|
~TemplatedApp() {
|
||||||
/* Let's just put everything here */
|
/* Let's just put everything here */
|
||||||
if (httpContext) {
|
if (httpContext) {
|
||||||
@@ -179,8 +175,8 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add mark, we don't want to end anything */
|
/* This will add our mark */
|
||||||
res->writeHeader("WebSocket-Server", "uWebSockets")->end();
|
res->end();
|
||||||
|
|
||||||
/* Move any backpressure */
|
/* Move any backpressure */
|
||||||
std::string backpressure(std::move(((AsyncSocketData<SSL> *) res->getHttpResponseData())->buffer));
|
std::string backpressure(std::move(((AsyncSocketData<SSL> *) res->getHttpResponseData())->buffer));
|
||||||
|
|||||||
@@ -81,6 +81,9 @@ private:
|
|||||||
/* Write status if not already done */
|
/* Write status if not already done */
|
||||||
writeStatus(HTTP_200_OK);
|
writeStatus(HTTP_200_OK);
|
||||||
|
|
||||||
|
/* Write mark, this propagates to WebSockets too */
|
||||||
|
writeHeader("Web-Server", "uWebSockets v0.15");
|
||||||
|
|
||||||
/* If no total size given then assume this chunk is everything */
|
/* If no total size given then assume this chunk is everything */
|
||||||
if (!totalSize) {
|
if (!totalSize) {
|
||||||
totalSize = data.length();
|
totalSize = data.length();
|
||||||
|
|||||||
Reference in New Issue
Block a user