Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / diffusion / response / DiffusionMercurialResponse.php
blob9c00cd468f97ca271be9ae52fdbde7e7e1802980
1 <?php
3 final class DiffusionMercurialResponse extends AphrontResponse {
5 private $content;
7 public function setContent($content) {
8 $this->content = $content;
9 return $this;
12 public function buildResponseString() {
13 return $this->content;
16 public function getHeaders() {
17 $headers = array(
18 array('Content-Type', 'application/mercurial-0.1'),
20 return array_merge(parent::getHeaders(), $headers);
23 public function getCacheHeaders() {
24 return array();
27 public function getHTTPResponseCode() {
28 return 200;