[master] eeb8d58 Various fixes

Federico G. Schwindt fgsch at lodoss.net
Mon Feb 17 09:07:24 CET 2014


commit eeb8d58715b023fdd5938790931bafd97c52f662
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Feb 17 08:03:57 2014 +0000

    Various fixes
    
    Spelling. While here also fix indentation and make sure we are using
    the right name for the variables and not the backward compat ones.

diff --git a/bin/varnishd/builtin.vcl b/bin/varnishd/builtin.vcl
index 3a723e3..00f5f6c 100644
--- a/bin/varnishd/builtin.vcl
+++ b/bin/varnishd/builtin.vcl
@@ -105,7 +105,7 @@ sub vcl_hit {
 	return (deliver);
     }
     if (obj.ttl + obj.grace > 0s) {
-	// Object is in grace, delive it
+	// Object is in grace, deliver it
 	// Automatically triggers a background fetch
 	return (deliver);
     }
@@ -132,7 +132,7 @@ sub vcl_backend_response {
 		/*
 		 * Mark as "Hit-For-Pass" for the next 2 minutes
 		 */
-		set beresp.ttl = 120 s;
+		set beresp.ttl = 120s;
 		set beresp.uncacheable = true;
     }
     return (deliver);
@@ -150,7 +150,7 @@ sub vcl_deliver {
 }
 
 /*
- * We can come here "invisibly" with the following errors:  413, 417 & 503
+ * We can come here "invisibly" with the following errors: 413, 417 & 503
  */
 sub vcl_error {
     set obj.http.Content-Type = "text/html; charset=utf-8";
@@ -161,11 +161,11 @@ sub vcl_error {
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html>
   <head>
-    <title>"} + obj.status + " " + obj.response + {"</title>
+    <title>"} + obj.status + " " + obj.reason + {"</title>
   </head>
   <body>
-    <h1>Error "} + obj.status + " " + obj.response + {"</h1>
-    <p>"} + obj.response + {"</p>
+    <h1>Error "} + obj.status + " " + obj.reason + {"</h1>
+    <p>"} + obj.reason + {"</p>
     <h3>Guru Meditation:</h3>
     <p>XID: "} + req.xid + {"</p>
     <hr>
@@ -177,9 +177,9 @@ sub vcl_error {
 }
 
 sub vcl_init {
-	return (ok);
+    return (ok);
 }
 
 sub vcl_fini {
-	return (ok);
+    return (ok);
 }



More information about the varnish-commit mailing list