ResponseFactory: support 302 redirects
authorGergő Tisza <tgr.huwiki@gmail.com>
Thu, 20 Jun 2019 15:17:37 +0000 (17:17 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 26 Jun 2019 09:42:31 +0000 (11:42 +0200)
commit19ad413d5dbbe15cfd6c5860f694e07e9abf8031
tree4cdfb82edcec147089f70f480f87fba8035d3aa4
parentd84d65f5c6f82760d24090cb959b205495775c81
ResponseFactory: support 302 redirects

Needed to match existing Parsoid behavior.

Also fixes redirect factory methods mistaking claiming to support
relative URLs. Most clients accept a relative URL in the Location
header, but the spec requires an absolute one, so better say that.

Change-Id: I03f5e776f7629eff6440698655277d8cd01e4a15
includes/Rest/ResponseFactory.php
tests/phpunit/includes/Rest/ResponseFactoryTest.php