Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
PHP
12345678910111213141516171819202122232425<?php
final class AphrontPlainTextResponse extends AphrontResponse {
private $content;
public function setContent($content) { $this->content = $content; return $this; }
public function buildResponseString() { return $this->content; }
public function getHeaders() { $headers = array( array('Content-Type', 'text/plain; charset=utf-8'), );
return array_merge(parent::getHeaders(), $headers); }
}