From 25cdc0838f6c346d7414da48dc327af9396c464b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 12 Jul 2013 18:43:23 +0200 Subject: [PATCH] Added request URL to reply data Closes #1409 --- wcfsetup/install/files/lib/util/HTTPRequest.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ); } -- 2.20.1