allow GET with body test to fail on lighttpd
Graham Knop [Sun, 26 Jul 2020 19:09:34 +0000 (21:09 +0200)]
lighttpd refuses all GET requests with a body.  Avoid failing tests
under these conditions.

t/aggregate/live_engine_request_body.t

index 0abe175..879ef14 100644 (file)
@@ -85,6 +85,10 @@ use HTTP::Request::Common;
     );
 
     ok( my $response = request($request), 'Request' );
+    my $server = $response->header('server') || '';
+    local $TODO = 'lighttpd refuses GET with body'
+        if $server =~ /lighttpd/;
+
     ok( $response->is_success, 'Response Successful 2xx' );
     ok( $response->header('X-Have-Request-Body'), 'X-Have-Request-Body set' );
 }