From 0a7989a9eb92e3cc3ea06dee5964f91b677ac920 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 1 Feb 2018 11:12:23 +0100 Subject: [PATCH] Add location header to --dry-run fake response --- src/shpub/Request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shpub/Request.php b/src/shpub/Request.php index 4437164..e7c3b77 100644 --- a/src/shpub/Request.php +++ b/src/shpub/Request.php @@ -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; } -- 2.30.2