Add location header to --dry-run fake response
authorChristian Weiske <cweiske@cweiske.de>
Thu, 1 Feb 2018 10:12:23 +0000 (11:12 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 1 Feb 2018 10:12:23 +0000 (11:12 +0100)
src/shpub/Request.php

index 4437164..e7c3b77 100644 (file)
@@ -99,6 +99,7 @@ class Request
             //fake a successful response
             $res = new \HTTP_Request2_Response('HTTP/1.1 200 OK', false);
             $res->parseHeaderLine('Content-type: text/plain');
+            $res->parseHeaderLine('Location: http://example.org/fake-response');
             $res->appendBody('Fake --dry-run response');
             return $res;
         }