]> err.no Git - varnish/commitdiff
I'm not sure Varnish should GET from the backend when the client used POST
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 8 Aug 2007 12:10:17 +0000 (12:10 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 8 Aug 2007 12:10:17 +0000 (12:10 +0000)
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

index bcda2af47b7ba57ee559b861117a8209c8f1282b..1890267d28c35a0224f59b546b474e2230138c3c 100644 (file)
@@ -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()) {