From: des Date: Wed, 8 Aug 2007 12:10:17 +0000 (+0000) Subject: I'm not sure Varnish should GET from the backend when the client used POST X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36fb9f45702c6c13348e56a4cf241344b897bfeb;p=varnish 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 --- 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()) {