mirror of https://gitee.com/bigwinds/arangodb
Removed now obsolete function mergeResponseHeaders in ClusterMethods
This commit is contained in:
parent
cd12a07a4d
commit
0a11583560
|
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue