From: Alexander Ebert Date: Fri, 12 Jul 2013 16:43:23 +0000 (+0200) Subject: Added request URL to reply data X-Git-Tag: 2.0.0_Beta_5~63^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25cdc0838f6c346d7414da48dc327af9396c464b;p=GitHub%2FWoltLab%2FWCF.git Added request URL to reply data Closes #1409 --- diff --git a/wcfsetup/install/files/lib/util/HTTPRequest.class.php b/wcfsetup/install/files/lib/util/HTTPRequest.class.php index 3c163a4fa5..c341794c6b 100644 --- a/wcfsetup/install/files/lib/util/HTTPRequest.class.php +++ b/wcfsetup/install/files/lib/util/HTTPRequest.class.php @@ -62,6 +62,12 @@ final class HTTPRequest { */ private $query; + /** + * request URL + * @var string + */ + private $url = ''; + /** * request headers * @var array @@ -121,6 +127,8 @@ final class HTTPRequest { * @param string $url */ private function setURL($url) { + $this->url = $url; + if (PROXY_SERVER_HTTP) { $parsedUrl = parse_url(PROXY_SERVER_HTTP); $this->path = $url; @@ -278,7 +286,8 @@ final class HTTPRequest { return array( 'statusCode' => $this->statusCode, 'headers' => $this->replyHeaders, - 'body' => $this->replyBody + 'body' => $this->replyBody, + 'url' => $this->url ); }