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 4437164af30f2cfda0836ebd7b174d98f9a54776..e7c3b775a51c26d76320bd400b671059d31c1c97 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;
         }