You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2013/07/12 18:31:52 UTC
[2/3] git commit: TS-2001: logical only applied to left side of
comparison
TS-2001: logical only applied to left side of comparison
clang complaint: logical not is only applied to the left hand side of
this comparison
so we simplify.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/e3750711
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/e3750711
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/e3750711
Branch: refs/heads/master
Commit: e37507112070a8566e1de0538c3df5a2d62d925c
Parents: 929f041
Author: Igor Galić <i....@brainsware.org>
Authored: Fri Jul 12 17:20:52 2013 +0200
Committer: Igor Galić <i....@brainsware.org>
Committed: Fri Jul 12 18:31:25 2013 +0200
----------------------------------------------------------------------
proxy/http/HttpTransact.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e3750711/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index fafb927..74580cb 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -5178,7 +5178,7 @@ HttpTransact::RequestError_t HttpTransact::check_request_validity(State* s, HTTP
if ((scheme == URL_WKSIDX_HTTP || scheme == URL_WKSIDX_HTTPS) &&
(method == HTTP_WKSIDX_POST || method == HTTP_WKSIDX_PUSH || method == HTTP_WKSIDX_PUT) &&
! incoming_hdr->presence(MIME_PRESENCE_CONTENT_LENGTH) &&
- ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
+ s->client_info.transfer_encoding != CHUNKED_ENCODING) {
return NO_POST_CONTENT_LENGTH;
}