Commit cf9aef1e authored by Luciano Orsini's avatar Luciano Orsini
Browse files

references #110: fixed http header in prometheus plugin

parent 3a460ae4
......@@ -3,3 +3,8 @@
./prometheus --config.file=prometheus.yml
Configuring retention time
......@@ -70,7 +70,7 @@
static std::size_t WriteResponse(xgi::Input * in, xgi::Output * out, const std::string& body)
out->getHTTPResponseHeader().getHTTPVersion("1.1").getStatusCode(200).getReasonPhrase(xgi::Utils::getResponsePhrase(200)).addHeader("Content-Type", "text/plain");
out->getHTTPResponseHeader().getStatusCode(200).getReasonPhrase(xgi::Utils::getResponsePhrase(200)).addHeader("Content-Type", "text/plain");
#ifdef HAVE_ZLIB
//auto acceptsGzip = IsEncodingAccepted(conn, "gzip");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment