mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 11:12:42 +01:00
6324669748
Summary: Ref T2230. This is easily the worst thing I've had to write in a while. I'll leave some notes inline. Test Plan: Ran `hg clone http://...` on a hosted repo. Ran `hg push` on the same. Changed sync'd both ways. Reviewers: asherkin, btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2230 Differential Revision: https://secure.phabricator.com/D7520
31 lines
572 B
PHP
31 lines
572 B
PHP
<?php
|
|
|
|
final class DiffusionMercurialResponse 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', 'application/mercurial-0.1'),
|
|
);
|
|
return array_merge(parent::getHeaders(), $headers);
|
|
}
|
|
|
|
public function getCacheHeaders() {
|
|
return array();
|
|
}
|
|
|
|
public function getHTTPResponseCode() {
|
|
return 200;
|
|
}
|
|
|
|
}
|