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 2012/12/12 17:34:27 UTC
svn commit: r1420814 - /trafficserver/site/trunk/content/tools/via.html
Author: humbedooh
Date: Wed Dec 12 16:34:26 2012
New Revision: 1420814
URL: http://svn.apache.org/viewvc?rev=1420814&view=rev
Log:
I feexah de parsing, for mistah de zwoop.
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=1420814&r1=1420813&r2=1420814&view=diff
==============================================================================
--- trafficserver/site/trunk/content/tools/via.html (original)
+++ trafficserver/site/trunk/content/tools/via.html Wed Dec 12 16:34:26 2012
@@ -104,8 +104,10 @@ function showVia(form) {
var text = form.via.value;
var via = document.getElementById("via")
var output = "";
+ var txtonly = text.match(/([a-zA-Z: ]+)/);
+ text = txtonly[1];
if (text.length == 24) {
- var arr = text.match(/([a-zA-Z ]+):([a-zA-Z ]+)/)
+ var arr = text.match(/([a-zA-Z ]+):([a-zA-Z ]+)/);
output = output + "<h3>Proxy request results:</h3>";
output = output + '<div style="width: 450px; font-weight: bold; float: left;">Request headers received from client:</div> <font color="#003399">' + codes[1][arr[1][1]] + '</font><br/>';
output = output + '<div style="width: 450px; font-weight: bold; float: left;">Result of Traffic Server cache lookup for URL:</div> <font color="#003399">' + codes[2][arr[1][3]] + '</font><br/>';