@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
at upstream/main 31 lines 572 B view raw
1<?php 2 3final class DiffusionMercurialResponse extends AphrontResponse { 4 5 private $content; 6 7 public function setContent($content) { 8 $this->content = $content; 9 return $this; 10 } 11 12 public function buildResponseString() { 13 return $this->content; 14 } 15 16 public function getHeaders() { 17 $headers = array( 18 array('Content-Type', 'application/mercurial-0.1'), 19 ); 20 return array_merge(parent::getHeaders(), $headers); 21 } 22 23 public function getCacheHeaders() { 24 return array(); 25 } 26 27 public function getHTTPResponseCode() { 28 return 200; 29 } 30 31}