Browse Source

* Correct ResponseContent field !

git-svn-id: trunk@30833 -
michael 10 years ago
parent
commit
0bf1ae4f7e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      packages/fcl-web/src/base/fpwebclient.pp

+ 4 - 3
packages/fcl-web/src/base/fpwebclient.pp

@@ -46,6 +46,7 @@ Type
   TWebClientRequest = Class(TRequestResponse)
   TWebClientRequest = Class(TRequestResponse)
   Private
   Private
     FExtraParams : TStrings;
     FExtraParams : TStrings;
+    FResponseStream: TStream;
   Protected
   Protected
     function GetExtraParams: TStrings; virtual;
     function GetExtraParams: TStrings; virtual;
   Public
   Public
@@ -54,7 +55,7 @@ Type
     // Query Parameters to include in request
     // Query Parameters to include in request
     Property Params : TStrings Read GetExtraParams;
     Property Params : TStrings Read GetExtraParams;
     // If you want the response to go to this stream, set this in the request
     // If you want the response to go to this stream, set this in the request
-    Property ResponseContent : TStream Read FStream Write FStream;
+    Property ResponseContent : TStream Read FResponseStream Write FResponseStream;
   end;
   end;
 
 
 
 
@@ -165,13 +166,13 @@ begin
 end;
 end;
 
 
 
 
-Destructor TWebClientRequest.Destroy;
+destructor TWebClientRequest.Destroy;
 begin
 begin
   FreeAndNil(FExtraParams);
   FreeAndNil(FExtraParams);
   inherited Destroy;
   inherited Destroy;
 end;
 end;
 
 
-Function TWebClientRequest.ParamsAsQuery: String;
+function TWebClientRequest.ParamsAsQuery: String;
 
 
 Var
 Var
   N,V : String;
   N,V : String;