1
0
Fork 0

removed tolower for NC

This commit is contained in:
Frank Celler 2016-04-07 14:15:18 +02:00
parent c452cb00bc
commit f6c818a399
3 changed files with 3 additions and 5 deletions

View File

@ -531,7 +531,7 @@ bool HttpCommTask::processRead() {
static std::string const wwwAuthenticate = "www-authenticate";
if (sendWwwAuthenticateHeader()) {
std::string const realm =
static std::string const realm =
"basic realm=\"" +
_server->handlerFactory()->authenticationRealm(_request) + "\"";
@ -772,7 +772,7 @@ void HttpCommTask::fillWriteBuffer() {
////////////////////////////////////////////////////////////////////////////////
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);

View File

@ -107,7 +107,7 @@ void RestJobHandler::putJob() {
_response = response;
// 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);
}

View File

@ -456,8 +456,6 @@ void GeneralResponse::setHeader(std::string const& key,
void GeneralResponse::setHeaderNC(std::string const& key,
std::string const& value) {
std::string k = StringUtils::tolower(key);
_headers[key] = value;
}