Fix indentation style.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/dfa72da6 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/dfa72da6 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/dfa72da6 Branch: refs/heads/master Commit: dfa72da6744b72d015270a4d175a59950c8e82e2 Parents: 8dec472 Author: Leif Hedstrom <[email protected]> Authored: Sat Sep 13 11:30:15 2014 -0600 Committer: Leif Hedstrom <[email protected]> Committed: Sat Sep 13 11:30:15 2014 -0600 ---------------------------------------------------------------------- proxy/http/HttpSM.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/dfa72da6/proxy/http/HttpSM.cc ---------------------------------------------------------------------- diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index 1e20072..110a085 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -1540,7 +1540,7 @@ HttpSM::handle_api_return() if (unlikely(t_state.did_upgrade_succeed)) { // We've sucessfully handled the upgrade, let's now setup // a blind tunnel. - if(t_state.is_websocket) { + if (t_state.is_websocket) { HTTP_INCREMENT_DYN_STAT(http_websocket_current_active_client_connections_stat); } @@ -7427,11 +7427,12 @@ HttpSM::redirect_request(const char *redirect_url, const int redirect_len) char origMethod[255]; int origPort = 80; - if(t_state.hdr_info.server_request.valid()) { + if (t_state.hdr_info.server_request.valid()) { + char* tmpOrigHost; origPort = t_state.hdr_info.server_request.port_get(); + tmpOrigHost = (char *) t_state.hdr_info.server_request.value_get(MIME_FIELD_HOST, MIME_LEN_HOST, &origHost_len); - char* tmpOrigHost = (char *) t_state.hdr_info.server_request.value_get(MIME_FIELD_HOST, MIME_LEN_HOST, &origHost_len); if (tmpOrigHost) { memcpy(origHost, tmpOrigHost, origHost_len); origHost[origHost_len] = '\0';
