aboutsummaryrefslogtreecommitdiffstats
path: root/storageframework
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2018-12-17 13:49:33 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-01-02 12:55:19 +0000
commitf6cdd76d3ce94b587a41e04ed3153606e9c149aa (patch)
treec00f3af304cacf01f262d3d94a6e47d8f2d081b3 /storageframework
parent77f69efafd70cefeec471ebc8b8dd06643d24dfe (diff)
use portal in storage webserver
Diffstat (limited to 'storageframework')
-rw-r--r--storageframework/src/vespa/storageframework/generic/status/statusreporter.cpp12
-rw-r--r--storageframework/src/vespa/storageframework/generic/status/statusreporter.h7
2 files changed, 1 insertions, 18 deletions
diff --git a/storageframework/src/vespa/storageframework/generic/status/statusreporter.cpp b/storageframework/src/vespa/storageframework/generic/status/statusreporter.cpp
index b17c70d132e..c7d025b060f 100644
--- a/storageframework/src/vespa/storageframework/generic/status/statusreporter.cpp
+++ b/storageframework/src/vespa/storageframework/generic/status/statusreporter.cpp
@@ -15,17 +15,5 @@ StatusReporter::~StatusReporter()
{
}
-bool
-StatusReporter::reportHttpHeader(std::ostream& out,
- const HttpUrlPath& path) const
-{
- vespalib::string contentType(getReportContentType(path));
- if (contentType == "") return false;
- out << "HTTP/1.1 200 OK\r\n"
- "Connection: Close\r\n"
- "Content-type: " << contentType << "\r\n\r\n";
- return true;
-}
-
} // framework
} // storage
diff --git a/storageframework/src/vespa/storageframework/generic/status/statusreporter.h b/storageframework/src/vespa/storageframework/generic/status/statusreporter.h
index 64e7c7b62e7..8d58467a221 100644
--- a/storageframework/src/vespa/storageframework/generic/status/statusreporter.h
+++ b/storageframework/src/vespa/storageframework/generic/status/statusreporter.h
@@ -40,12 +40,7 @@ struct StatusReporter
virtual bool isValidStatusRequest() const { return true; }
/**
- * Overwrite to get full control of header writes.
- * Returning false means the page specified by path does not exist.
- */
- virtual bool reportHttpHeader(std::ostream&, const HttpUrlPath&) const;
- /**
- * Called by default writeHttpHeader implementation to get content type.
+ * Called to get content type.
* An empty string indicates page not found.
*/
virtual vespalib::string getReportContentType(const HttpUrlPath&) const = 0;