effectiveUrl seems to contain the url we want

This commit is contained in:
hannes 2016-01-05 22:44:06 +00:00
parent 9a75778b29
commit 64f2f3d976

View File

@ -80,7 +80,7 @@ class GNUsocial_HTTPResponse extends HTTP_Request2_Response
*/ */
function getUrl() function getUrl()
{ {
return $this->url; return $this->effectiveUrl;
} }
/** /**
@ -360,4 +360,4 @@ class HTTPClient extends HTTP_Request2
} while ($maxRedirs); } while ($maxRedirs);
return new GNUsocial_HTTPResponse($response, $this->getUrl(), $redirs); return new GNUsocial_HTTPResponse($response, $this->getUrl(), $redirs);
} }
} }