Skip to content

Commit

Permalink
Do not force $contentType to text/html in HTTP_Request2::addUpload()
Browse files Browse the repository at this point in the history
To make the library work with other file types as well, e.g. SVG.
  • Loading branch information
ricordisamoa committed Dec 30, 2014
1 parent 8abc5cf commit e12ae7e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Services/W3C/HTMLValidator.php
Expand Up @@ -280,10 +280,7 @@ protected function buildRequest($type = 'uri')
break;
case 'file':
$this->request->setMethod(HTTP_Request2::METHOD_POST);
$this->request->addUpload('uploaded_file',
$this->uploaded_file,
null,
'text/html');
$this->request->addUpload('uploaded_file', $this->uploaded_file);
$method = 'addPostParameter';
break;
case 'fragment':
Expand Down

0 comments on commit e12ae7e

Please sign in to comment.