Browse Source

* Fixed recognition of contenttypes containing information about the character-set
* Added debug-lines

git-svn-id: trunk@13245 -

joost 16 years ago
parent
commit
17c4dc5feb
1 changed files with 7 additions and 1 deletions
  1. 7 1
      packages/fcl-web/src/httpdefs.pp

+ 7 - 1
packages/fcl-web/src/httpdefs.pp

@@ -1113,6 +1113,9 @@ var
   R : String;
   R : String;
 
 
 begin
 begin
+{$ifdef CGIDEBUG}
+  SendMethodEnter('TRequest.InitRequestVars');
+{$endif}
   R:=Method;
   R:=Method;
   if (R='') then
   if (R='') then
     Raise Exception.Create(SErrNoRequestMethod);
     Raise Exception.Create(SErrNoRequestMethod);
@@ -1126,6 +1129,9 @@ begin
     InitGetVars
     InitGetVars
   else
   else
     Raise Exception.CreateFmt(SErrInvalidRequestMethod,[R]);
     Raise Exception.CreateFmt(SErrInvalidRequestMethod,[R]);
+{$ifdef CGIDEBUG}
+  SendMethodExit('TRequest.InitRequestVars');
+{$endif}
 end;
 end;
 
 
 Type
 Type
@@ -1158,7 +1164,7 @@ begin
     CT:=ContentType;
     CT:=ContentType;
     if Pos('MULTIPART/FORM-DATA',Uppercase(CT))<>0 then
     if Pos('MULTIPART/FORM-DATA',Uppercase(CT))<>0 then
       ProcessMultiPart(M,CT, ContentFields)
       ProcessMultiPart(M,CT, ContentFields)
-    else if CompareText('APPLICATION/X-WWW-FORM-URLENCODED',CT)=0 then
+    else if Pos('APPLICATION/X-WWW-FORM-URLENCODED',Uppercase(CT))<>0 then
       ProcessUrlEncoded(M, ContentFields)
       ProcessUrlEncoded(M, ContentFields)
     else
     else
       begin
       begin