trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject [14/17] git commit: fix to deal with redirect by remap correctly for instrumentation (logging, metrics)
Date Wed, 18 Jun 2014 23:51:40 GMT
fix to deal with redirect by remap correctly for instrumentation (logging, metrics)


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/6e6132ac
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/6e6132ac
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/6e6132ac

Branch: refs/heads/4.2.x
Commit: 6e6132ac9d7585f0c936321508767307557b7b20
Parents: ee8a4b1
Author: Brian Geffon <briang@apache.org>
Authored: Tue Jun 10 16:23:04 2014 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Tue Jun 10 16:23:04 2014 -0700

----------------------------------------------------------------------
 proxy/http/HttpTransact.cc | 2 +-
 proxy/http/HttpTransact.h  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6e6132ac/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 0da5f4f..35495d6 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -8100,7 +8100,7 @@ HttpTransact::build_error_response(State *s, HTTPStatus status_code,
const char
     SET_VIA_STRING(VIA_ERROR_TYPE, VIA_ERROR_DNS_FAILURE);
     break;
   case HTTP_STATUS_MOVED_TEMPORARILY:
-    SET_VIA_STRING(VIA_ERROR_TYPE, VIA_ERROR_SERVER);
+    SET_VIA_STRING(VIA_ERROR_TYPE, VIA_ERROR_MOVED_TEMPORARILY);
     break;
   case HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED:
     SET_VIA_STRING(VIA_CLIENT_REQUEST, VIA_CLIENT_ERROR);

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6e6132ac/proxy/http/HttpTransact.h
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.h b/proxy/http/HttpTransact.h
index 21d8a40..569f55c 100644
--- a/proxy/http/HttpTransact.h
+++ b/proxy/http/HttpTransact.h
@@ -190,6 +190,7 @@ enum ViaString_t
   VIA_ERROR_SERVER = 'S',
   VIA_ERROR_TIMEOUT = 'T',
   VIA_ERROR_CACHE_READ = 'R',
+  VIA_ERROR_MOVED_TEMPORARILY = 'M',
   //
   // Now the detailed stuff
   //


Mime
View raw message