mirror of https://gitee.com/bigwinds/arangodb
removed tolower for NC
This commit is contained in:
parent
c452cb00bc
commit
f6c818a399
|
@ -531,7 +531,7 @@ bool HttpCommTask::processRead() {
|
||||||
static std::string const wwwAuthenticate = "www-authenticate";
|
static std::string const wwwAuthenticate = "www-authenticate";
|
||||||
|
|
||||||
if (sendWwwAuthenticateHeader()) {
|
if (sendWwwAuthenticateHeader()) {
|
||||||
std::string const realm =
|
static std::string const realm =
|
||||||
"basic realm=\"" +
|
"basic realm=\"" +
|
||||||
_server->handlerFactory()->authenticationRealm(_request) + "\"";
|
_server->handlerFactory()->authenticationRealm(_request) + "\"";
|
||||||
|
|
||||||
|
@ -772,7 +772,7 @@ void HttpCommTask::fillWriteBuffer() {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void HttpCommTask::processCorsOptions(uint32_t compatibility) {
|
void HttpCommTask::processCorsOptions(uint32_t compatibility) {
|
||||||
std::string const allowedMethods = "DELETE, GET, HEAD, PATCH, POST, PUT";
|
static std::string const allowedMethods = "DELETE, GET, HEAD, PATCH, POST, PUT";
|
||||||
|
|
||||||
HttpResponse response(GeneralResponse::ResponseCode::OK, compatibility);
|
HttpResponse response(GeneralResponse::ResponseCode::OK, compatibility);
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ void RestJobHandler::putJob() {
|
||||||
_response = response;
|
_response = response;
|
||||||
|
|
||||||
// plus a new header
|
// plus a new header
|
||||||
static std::string xArango = "x-arango-async-id";
|
static std::string const xArango = "x-arango-async-id";
|
||||||
_response->setHeaderNC(xArango, value);
|
_response->setHeaderNC(xArango, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -456,8 +456,6 @@ void GeneralResponse::setHeader(std::string const& key,
|
||||||
|
|
||||||
void GeneralResponse::setHeaderNC(std::string const& key,
|
void GeneralResponse::setHeaderNC(std::string const& key,
|
||||||
std::string const& value) {
|
std::string const& value) {
|
||||||
std::string k = StringUtils::tolower(key);
|
|
||||||
|
|
||||||
_headers[key] = value;
|
_headers[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue