* (bug 29154) Allow upload-by-URL to follow HTTP redirects

This commit is contained in:
Brion Vibber 2011-09-22 01:15:06 +00:00
parent 2767e134f4
commit a16a028057

View file

@ -148,7 +148,9 @@ class UploadFromUrl extends UploadBase {
$this->mRemoveTempFile = true;
$this->mFileSize = 0;
$req = MWHttpRequest::factory( $this->mUrl );
$req = MWHttpRequest::factory( $this->mUrl, array(
'followRedirects' => true
) );
$req->setCallback( array( $this, 'saveTempFileChunk' ) );
$status = $req->execute();