You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by hu...@apache.org on 2013/02/04 18:31:10 UTC
svn commit: r1442194 - /trafficserver/site/trunk/content/tools/via.html
Author: humbedooh
Date: Mon Feb 4 17:31:10 2013
New Revision: 1442194
URL: http://svn.apache.org/viewvc?rev=1442194&view=rev
Log:
Try to guess the last character if only 5 are presented in a 6 char via header
Modified:
trafficserver/site/trunk/content/tools/via.html
Modified: trafficserver/site/trunk/content/tools/via.html
URL: http://svn.apache.org/viewvc/trafficserver/site/trunk/content/tools/via.html?rev=1442194&r1=1442193&r2=1442194&view=diff
==============================================================================
--- trafficserver/site/trunk/content/tools/via.html (original)
+++ trafficserver/site/trunk/content/tools/via.html Mon Feb 4 17:31:10 2013
@@ -105,6 +105,9 @@ function showVia(form, value) {
var output = "";
var txtonly = text.match(/([a-zA-Z: ]+)/);
text = txtonly[1];
+ if (text.length == 5) {
+ text = text + " "
+ }
if (text.length == 24) {
var arr = text.match(/([a-zA-Z ]+):([a-zA-Z ]+)/);
output = output + "<h3>Proxy request results:</h3>";