[4.1] 0d8c80b Document that resp.status overwrites resp.reason.

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 14 15:15:00 CET 2016


commit 0d8c80ba2eccb6a06913b42a44ea5a87cf1a9a13
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