1
0
Fork 0

fixed misusage

This commit is contained in:
Jan Steemann 2016-04-07 16:39:53 +02:00
parent 74794d16db
commit ac99d29dd4
4 changed files with 2 additions and 9 deletions

View File

@ -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);
}

View File

@ -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,

View File

@ -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);
}

View File

@ -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: