[master] 2696bab Document that resp.status overwrites resp.reason.

Lasse Karstensen lkarsten at varnish-software.com
Sun Oct 11 10:06:31 CEST 2015


commit 2696bab0f4fb495e8fe7acfc9fe7ad32dbeac85a
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Sun Oct 11 10:02:21 2015 +0200

    Document that resp.status overwrites resp.reason.
    
    For those cases where you want to send a different reason
    message, but use the normal status code.
    
    Noticed by Kacper when doing 301/302 in vcl_synth().

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index 81e773c..062d180 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -689,6 +689,9 @@ sp_variables = [
 		( 'deliver', 'synth', ),
 		( 'deliver', 'synth', ), """
 		The HTTP status code that will be returned.
+
+                Assigning a HTTP standardized code to resp.status will also
+                set resp.reason to the corresponding status message.
 		"""
 	),
 	('resp.reason',



More information about the varnish-commit mailing list