1
0
Fork 0

removed unused flag

This commit is contained in:
jsteemann 2016-09-15 08:44:07 +02:00
parent a9cb07678d
commit 542f4bb955
2 changed files with 1 additions and 15 deletions

View File

@ -52,7 +52,6 @@ HttpCommTask::HttpCommTask(GeneralServer* server, TRI_socket_t sock,
_readRequestBody(false),
_allowMethodOverride(GeneralServerFeature::allowMethodOverride()),
_denyCredentials(true),
_acceptDeflate(false),
_newRequest(true),
_requestType(rest::RequestType::ILLEGAL), // TODO(fc) remove
_fullUrl(), // TODO(fc) remove
@ -225,7 +224,6 @@ bool HttpCommTask::processRead() {
_requestType = rest::RequestType::ILLEGAL;
_fullUrl = "";
_denyCredentials = true;
_acceptDeflate = false;
_sinceCompactification++;
}
@ -540,18 +538,6 @@ bool HttpCommTask::processRead() {
}
void HttpCommTask::processRequest(std::unique_ptr<HttpRequest> request) {
// check for deflate
bool found;
std::string const& acceptEncoding =
request->header(StaticStrings::AcceptEncoding, found);
if (found) {
if (acceptEncoding.find("deflate") != std::string::npos) {
_acceptDeflate = true;
}
}
{
LOG_TOPIC(DEBUG, Logger::REQUESTS)
<< "\"http-request-begin\",\"" << (void*)this << "\",\""
@ -570,6 +556,7 @@ void HttpCommTask::processRequest(std::unique_ptr<HttpRequest> request) {
}
// check for an HLC time stamp
bool found;
std::string const& timeStamp =
request->header(StaticStrings::HLCHeader, found);

View File

@ -67,7 +67,6 @@ class HttpCommTask : public GeneralCommTask {
bool _allowMethodOverride; // allow method override
bool _denyCredentials; // whether or not to allow credentialed requests (only
// CORS)
bool _acceptDeflate; // whether the client accepts deflate algorithm
bool _newRequest; // new request started
// TODO(fc) remove
rest::RequestType _requestType; // type of request (GET, POST, ...)