Frame brokered HTTP responses once
This commit is contained in:
@@ -66,7 +66,7 @@ RENDER(Request& context)
|
||||
socket_close(stopped_sockfd);
|
||||
mark(
|
||||
"server_start_http() / SERVE_HTTP:named / server_stop()",
|
||||
(custom_http_pid != 0 && write_ok && response.find("custom-http-named") != String::npos && response.find("query=alpha=1") != String::npos && stopped && listener_closed) ? "pass" : "fail",
|
||||
(custom_http_pid != 0 && write_ok && response.find("custom-http-named") != String::npos && response.find("query=alpha=1") != String::npos && response.find("\r\nHTTP/1.1 ") == String::npos && stopped && listener_closed) ? "pass" : "fail",
|
||||
response.substr(0, response.length() > 260 ? 260 : response.length()) + " stopped=" + (stopped ? "true" : "false") + " listener_closed=" + (listener_closed ? "true" : "false")
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user