[master] 428996a fix and improve std.late_100_continue documentation
Nils Goroll
nils.goroll at uplex.de
Thu Mar 2 10:06:05 CET 2017
commit 428996a300e29d5ccb47fa4e45d7f51e6e5f711a
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Mar 2 10:02:38 2017 +0100
fix and improve std.late_100_continue documentation
diff --git a/lib/libvmod_std/vmod.vcc b/lib/libvmod_std/vmod.vcc
index ecbd449..61eed10 100644
--- a/lib/libvmod_std/vmod.vcc
+++ b/lib/libvmod_std/vmod.vcc
@@ -290,8 +290,8 @@ Description
request header.
Varnish always generates a `100 Continue` response if
- requested by the by the client trough the `Expect:
- 100-continue` header when waiting for request body data.
+ requested by the client trough the `Expect: 100-continue`
+ header when waiting for request body data.
But, by default, the `100 Continue` response is already
generated immediately after `vcl_recv` returns to reduce
@@ -308,6 +308,17 @@ Description
calling `std.cache_req_body()` or any other function consuming
the request body.
+Example
+ | vcl_recv {
+ | std.late_100_continue(true);
+ |
+ | if (req.method == "POST") {
+ | std.late_100_continue(false);
+ | return (pass);
+ | }
+ | ...
+ | }
+
SEE ALSO
========
More information about the varnish-commit
mailing list