From e12ae7e200a8c3c359f15b954ef85699f9f13038 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Tue, 30 Dec 2014 09:10:30 +0100 Subject: [PATCH] Do not force $contentType to text/html in HTTP_Request2::addUpload() To make the library work with other file types as well, e.g. SVG. --- Services/W3C/HTMLValidator.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Services/W3C/HTMLValidator.php b/Services/W3C/HTMLValidator.php index 6db1b07..c622795 100644 --- a/Services/W3C/HTMLValidator.php +++ b/Services/W3C/HTMLValidator.php @@ -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':