aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/HttpTest.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2011-12-22 23:12:44 +0000
committerBrion Vibber <brion@users.mediawiki.org>2011-12-22 23:12:44 +0000
commit2fc16ba6708b298fc5991c7cc3228c56bd64507c (patch)
tree9cb8b474a7f51542b2b8e3b484a81df01904db83 /tests/phpunit/includes/HttpTest.php
parentd9617a4537ce0c06914284a9259113d552b74008 (diff)
downloadmediawikicore-2fc16ba6708b298fc5991c7cc3228c56bd64507c.tar.gz
mediawikicore-2fc16ba6708b298fc5991c7cc3228c56bd64507c.zip
Add comments explaining that the funky multiple Location headers stuff is a CURL artifact, and that the code will need updating if bug 29232 is done (high-level handling of http redirects)
Followup r94881, r106948.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107121
Diffstat (limited to 'tests/phpunit/includes/HttpTest.php')
-rw-r--r--tests/phpunit/includes/HttpTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/phpunit/includes/HttpTest.php b/tests/phpunit/includes/HttpTest.php
index 07ccfa45d0ba..263383f19f0a 100644
--- a/tests/phpunit/includes/HttpTest.php
+++ b/tests/phpunit/includes/HttpTest.php
@@ -124,6 +124,14 @@ class HttpTest extends MediaWikiTestCase {
);
}
+ /**
+ * Warning:
+ *
+ * These tests are for code that makes use of an artifact of how CURL
+ * handles header reporting on redirect pages, and will need to be
+ * rewritten when bug 29232 is taken care of (high-level handling of
+ * HTTP redirects).
+ */
function testRelativeRedirections() {
$h = new MWHttpRequestTester( 'http://oldsite/file.ext' );
# Forge a Location header