Page MenuHomePhorge

D25810.1729341132.diff
No OneTemporary

D25810.1729341132.diff

diff --git a/src/future/http/status/HTTPFutureHTTPResponseStatus.php b/src/future/http/status/HTTPFutureHTTPResponseStatus.php
--- a/src/future/http/status/HTTPFutureHTTPResponseStatus.php
+++ b/src/future/http/status/HTTPFutureHTTPResponseStatus.php
@@ -11,6 +11,8 @@
array $headers,
$expect = null) {
+ // As $body can be null (T15930), make sure this code deals with a string
+ $body = phutil_string_cast($body);
// NOTE: Avoiding PhutilUTF8StringTruncator here because this isn't lazy
// and responses may be large.
if (strlen($body) > 512) {

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 19, 12:32 (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
933315
Default Alt Text
D25810.1729341132.diff (581 B)

Event Timeline