git.cweiske.de
/
shpub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a460539
)
Add location header to --dry-run fake response
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 1 Feb 2018 10:12:23 +0000
(11:12 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 1 Feb 2018 10:12:23 +0000
(11:12 +0100)
src/shpub/Request.php
patch
|
blob
|
history
diff --git
a/src/shpub/Request.php
b/src/shpub/Request.php
index 4437164af30f2cfda0836ebd7b174d98f9a54776..e7c3b775a51c26d76320bd400b671059d31c1c97 100644
(file)
--- 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;
}