mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
.Web/httpsrv.cpp: minor fixes in POST data handling
git-svn-id: svn://ultimatepp.org/upp/trunk@3795 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
937459ce58
commit
07cb5ef842
1 changed files with 7 additions and 4 deletions
|
|
@ -664,12 +664,15 @@ One<HttpRequest> HttpServer::GetRequest()
|
|||
}
|
||||
{
|
||||
String content = request_query.GetString("$$CONTENT_TYPE");
|
||||
static const char utag[] = "application/x-www-form-urlencoded";
|
||||
static const char mtag[] = "multipart/";
|
||||
request_query.Set("$$POSTDATA", post_data);
|
||||
if(!socket.IsError() && strnicmp(content, mtag, 10))
|
||||
request_query.SetURL(post_data);
|
||||
else
|
||||
GetHttpPostData(request_query, post_data);
|
||||
if(!socket.IsError()) {
|
||||
if(!CompareNoCase(content, utag))
|
||||
request_query.SetURL(post_data);
|
||||
else if(!strnicmp(content, mtag, 10))
|
||||
GetHttpPostData(request_query, post_data);
|
||||
}
|
||||
One<HttpRequest> req = new HttpRequest(*this, conn, request_query);
|
||||
req->LogTime(GetHttpURI(request_query), 1);
|
||||
return req;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue