Commit c6d4e03f authored by Davis King's avatar Davis King

Fixed a bug in the way Content-type was handled in HTTP posts.

(See bug #2600378)

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402871
parent 2712f4e3
......@@ -10,6 +10,7 @@
#include <sstream>
#include <string>
#include "../logger.h"
#include "../string.h"
#ifdef __INTEL_COMPILER
// ignore the bogus warning about hiding on_connect()
......@@ -262,7 +263,7 @@ namespace dlib
// If there is data being posted back to us as a query string then
// just stick it onto the end of the path so the following code can
// then just pick it out like we do for GET requests.
if (rtype == post && content_type == "application/x-www-form-urlencoded"
if (rtype == post && tolower(left_substr(content_type,";")) == "application/x-www-form-urlencoded"
&& content_length > 0)
{
line.resize(content_length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment