changeset 338:3a3b3ba8c1e0

fix for uploads through internet explorer 7
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 14 Jan 2013 11:35:01 +0100
parents 26218c4de7e0
children 639272ef7615
files Core/HttpServer/MongooseServer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Sun Jan 13 22:06:31 2013 +0100
+++ b/Core/HttpServer/MongooseServer.cpp	Mon Jan 14 11:35:01 2013 +0100
@@ -341,7 +341,7 @@
     ArgumentIterator fileName = headers.find("x-file-name");
     ArgumentIterator fileSizeStr = headers.find("x-file-size");
 
-    if (requestedWith == headers.end() ||
+    if (requestedWith != headers.end() &&
         requestedWith->second != "XMLHttpRequest")
     {
       return PostDataStatus_Failure;