1
0
Fork 0

Removed now obsolete function mergeResponseHeaders in ClusterMethods

This commit is contained in:
Michael Hackstein 2016-04-16 20:13:34 +02:00
parent cd12a07a4d
commit 0a11583560
2 changed files with 0 additions and 28 deletions

View File

@ -363,27 +363,6 @@ static void collectResultsFromAllShards(
}
}
////////////////////////////////////////////////////////////////////////////////
/// @brief merge headers of a DB server response into the current response
////////////////////////////////////////////////////////////////////////////////
void mergeResponseHeaders(GeneralResponse* response,
std::map<std::string, std::string> const& headers) {
std::map<std::string, std::string>::const_iterator it = headers.begin();
while (it != headers.end()) {
// skip first header line (which is the HTTP response code)
std::string const& key = (*it).first;
// the following headers are ignored
if (key != "http/1.1" && key != "connection" && key != "content-length" &&
key != "server") {
response->setHeader(key, (*it).second);
}
++it;
}
}
////////////////////////////////////////////////////////////////////////////////
/// @brief creates a copy of all HTTP headers to forward
////////////////////////////////////////////////////////////////////////////////

View File

@ -47,13 +47,6 @@ class TraverserExpression;
struct OperationOptions;
////////////////////////////////////////////////////////////////////////////////
/// @brief merge headers of a DB server response into the current response
////////////////////////////////////////////////////////////////////////////////
void mergeResponseHeaders(arangodb::GeneralResponse* response,
std::map<std::string, std::string> const& headers);
////////////////////////////////////////////////////////////////////////////////
/// @brief creates a copy of all HTTP headers to forward
////////////////////////////////////////////////////////////////////////////////