Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401257
D14226.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14226.diff
View Options
diff --git a/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php b/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php
--- a/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php
+++ b/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php
@@ -75,6 +75,12 @@
list($status, $body, $headers) = $future->resolve();
$header_lines = array();
+
+ // TODO: We don't currently preserve the entire "HTTP" response header, but
+ // should. Once we do, reproduce it here faithfully.
+ $status_code = $status->getStatusCode();
+ $header_lines[] = "HTTP {$status_code}";
+
foreach ($headers as $header) {
list($head, $tail) = $header;
$header_lines[] = "{$head}: {$tail}";
@@ -89,7 +95,7 @@
->newLog($uri, 'http.body')
->append($body);
- if ($status->getStatusCode() != 200) {
+ if ($status->isError()) {
throw new HarbormasterBuildFailureException();
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 4:35 PM (6 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7627566
Default Alt Text
D14226.diff (1 KB)
Attached To
Mode
D14226: Acccept any HTTP 2xx status as success in Harbormaster
Attached
Detach File
Event Timeline
Log In to Comment