r1815 - trunk/varnish-tools/regress/lib/Varnish/Test/Case

des at projects.linpro.no des at projects.linpro.no
Wed Aug 8 14:10:17 CEST 2007


Author: des
Date: 2007-08-08 14:10:17 +0200 (Wed, 08 Aug 2007)
New Revision: 1815

Modified:
   trunk/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm
Log:
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.


Modified: trunk/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm
===================================================================
--- trunk/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm	2007-08-08 12:08:25 UTC (rev 1814)
+++ trunk/varnish-tools/regress/lib/Varnish/Test/Case/POST.pm	2007-08-08 12:10:17 UTC (rev 1815)
@@ -95,9 +95,15 @@
     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()) {
 	$response->content("The Magic Words are " . $request->content());
     } else {




More information about the varnish-commit mailing list