Skip to content

Commit

Permalink
Point at test cases for more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aondio committed Feb 24, 2016
1 parent 798f7bd commit 7c36f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 3 additions & 2 deletions example.vcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# VCL examples.
# Tip: read up the tests for more complex use-cases

# buffer_req_body(BYTES size)
# It can be called only from vcl_recv.
Expand Down Expand Up @@ -57,7 +58,7 @@ sub vcl_deliver {
# Note without this part of VCL every request method will be converted
# to GET on backend side.
sub vcl_recv {
if (req.method == "POST" || req.method == "PUT") {
if (req.method == "POST") {
set req.http.x-method = req.method;
}
}
Expand All @@ -70,7 +71,7 @@ sub vcl_backend_fetch {

# skeleton VCL using all the functions from this Vmod.
sub vcl_recv {
if (req.method == "POST" || req.method == "PUT") {
if (req.method == "POST") {
set req.http.x-method = req.method;
if (bodyaccess.buffer_req_body(110KB)) {
set req.http.x-len = bodyaccess.len_req_body();
Expand Down
9 changes: 0 additions & 9 deletions src/vmod_transbody.vcc

This file was deleted.

0 comments on commit 7c36f36

Please sign in to comment.