Browse Source

* Fix bug ID #27993

git-svn-id: trunk@30743 -
michael 10 years ago
parent
commit
8c3d0149e2
1 changed files with 4 additions and 7 deletions
  1. 4 7
      packages/fcl-web/src/base/custfcgi.pp

+ 4 - 7
packages/fcl-web/src/base/custfcgi.pp

@@ -267,13 +267,8 @@ begin
                           end;
                         end;
     FCGI_STDIN :        begin
-                        InitRequestVars;
-                        if AFCGIRecord^.contentLength=0 then
-                          begin
-                          Result := True;
-                          ParseCookies;
-                          end
-                        else
+                        Result:=AFCGIRecord^.contentLength=0;
+                        if not Result then
                           begin
                           cl := length(FSTDin);
                           rcl := BetoN(PFCGI_ContentRecord(AFCGIRecord)^.header.contentLength);
@@ -289,6 +284,8 @@ begin
       if poFailonUnknownRecord in FPO then
         TFCgiHandler.DoError('Unknown FASTCGI record type: %s',[AFCGIRecord^.reqtype]);
   end;
+  if Result then
+    InitRequestVars;
 end;
 
 function TFCGIRequest.DoGetCGIVar(AVarName: String): String;