From 36fb9f45702c6c13348e56a4cf241344b897bfeb Mon Sep 17 00:00:00 2001 From: des Date: Wed, 8 Aug 2007 12:10:17 +0000 Subject: [PATCH] I'm not sure Varnish should GET from the backend when the client used POST but the VCL script decided to cache the request anyway. Treat it as an error for now. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1815 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/regress/lib/Varnish/Test/Case/POST.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm b/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm index bcda2af4..1890267d 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm @@ -95,7 +95,13 @@ sub testCachePOST($) { return 'OK'; } -sub server_post($$$$) { +sub server_get($$$) { + my ($self, $request, $response) = @_; + + die "Got GET request instead of POST\n"; +} + +sub server_post($$$) { my ($self, $request, $response) = @_; if ($request->content()) { -- 2.39.5