Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/traffic_via/traffic_via.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ standardViaLookup(char flag)
viaTable->viaData[(unsigned char)'N'] = "no error";
viaTable->viaData[(unsigned char)'F'] = "request forbidden";
viaTable->viaData[(unsigned char)'R'] = "cache read error";
viaTable->viaData[(unsigned char)'M'] = "moved temporarily";
viaTable->viaData[(unsigned char)' '] = "unknown";
break;
default:
Expand Down
1 change: 1 addition & 0 deletions doc/appendices/faq.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ F request forbidden
H header syntax unacceptable
N no error
R cache read error
M moved temporarily
S server related error
T connection timed out
===== ==========================
Expand Down
2 changes: 1 addition & 1 deletion proxy/http/HttpTransact.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8135,7 +8135,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);
Expand Down
1 change: 1 addition & 0 deletions proxy/http/HttpTransact.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,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
//
Expand Down
3 changes: 3 additions & 0 deletions proxy/http/README.via
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
A in cache, not acceptable
S in cache, stale
H in cache, fresh
R in cache, fresh RAM hit

server stuff
E error in response
Expand All @@ -35,6 +36,8 @@
D dns failure
F request forbidden
H header syntax unacceptable
M moved temporarily
R cache read error
S server related error
T connection timed out

Expand Down