mirror of https://gitee.com/bigwinds/arangodb
fixed misusage
This commit is contained in:
parent
74794d16db
commit
ac99d29dd4
|
@ -273,6 +273,6 @@ std::string const& GeneralRequest::value(std::string const& key, bool& found) co
|
|||
void GeneralRequest::setArrayValue(char* key, size_t length, char const* value) {
|
||||
std::string keyStr(key, length);
|
||||
|
||||
_arrayValues[key].emplace_back(value);
|
||||
_arrayValues[keyStr].emplace_back(value);
|
||||
}
|
||||
|
||||
|
|
|
@ -450,7 +450,7 @@ void GeneralResponse::setHeader(std::string const& key,
|
|||
std::string const& value) {
|
||||
std::string k = StringUtils::tolower(key);
|
||||
|
||||
_headers[key] = value;
|
||||
_headers[k] = value;
|
||||
}
|
||||
|
||||
void GeneralResponse::setHeaderNC(std::string const& key,
|
||||
|
|
|
@ -750,6 +750,3 @@ std::shared_ptr<VPackBuilder> HttpRequest::toVelocyPack(
|
|||
return parser.steal();
|
||||
}
|
||||
|
||||
TRI_json_t* HttpRequest::toJson(char** errmsg) {
|
||||
return TRI_Json2String(TRI_UNKNOWN_MEM_ZONE, body().c_str(), errmsg);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include "Rest/GeneralRequest.h"
|
||||
|
||||
#include "Basics/StringBuffer.h"
|
||||
#include "Basics/json.h"
|
||||
#include "Endpoint/ConnectionInfo.h"
|
||||
|
||||
namespace arangodb {
|
||||
|
@ -74,9 +73,6 @@ class HttpRequest : public GeneralRequest {
|
|||
std::shared_ptr<arangodb::velocypack::Builder> toVelocyPack(
|
||||
arangodb::velocypack::Options const*);
|
||||
|
||||
// the request body as TRI_json_t*
|
||||
TRI_json_t* toJson(char**);
|
||||
|
||||
using GeneralRequest::setHeader;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue