|
@@ -354,6 +354,8 @@ Var
|
|
MC : TCustomHTTPModuleClass;
|
|
MC : TCustomHTTPModuleClass;
|
|
M : TCustomHTTPModule;
|
|
M : TCustomHTTPModule;
|
|
MN : String;
|
|
MN : String;
|
|
|
|
+ lNewName : string;
|
|
|
|
+ i : Integer;
|
|
|
|
|
|
begin
|
|
begin
|
|
MC:=Sender.ModuleClass;
|
|
MC:=Sender.ModuleClass;
|
|
@@ -362,10 +364,25 @@ begin
|
|
ARequest.GetNextPathInfo;
|
|
ARequest.GetNextPathInfo;
|
|
M:=FindModule(MC);
|
|
M:=FindModule(MC);
|
|
if (M=Nil) then
|
|
if (M=Nil) then
|
|
|
|
+ begin
|
|
if Sender.SkipStreaming then
|
|
if Sender.SkipStreaming then
|
|
- M:=MC.CreateNew(Self)
|
|
|
|
|
|
+ M:=MC.CreateNew(Nil)
|
|
else
|
|
else
|
|
- M:=MC.Create(Self);
|
|
|
|
|
|
+ M:=MC.Create(Nil);
|
|
|
|
+ lNewName:=M.Name;
|
|
|
|
+ if lNewName<>'' then
|
|
|
|
+ begin
|
|
|
|
+ // Make sure we have a unique name.
|
|
|
|
+ i:=1;
|
|
|
|
+ While Self.FindComponent(lNewName)<>Nil do
|
|
|
|
+ begin
|
|
|
|
+ Inc(I);
|
|
|
|
+ lNewName:=M.Name+IntTostr(I);
|
|
|
|
+ end;
|
|
|
|
+ M.Name:=lNewName;
|
|
|
|
+ end;
|
|
|
|
+ Self.InsertComponent(M);
|
|
|
|
+ end;
|
|
DoCallModule(M,MN,ARequest,AResponse);
|
|
DoCallModule(M,MN,ARequest,AResponse);
|
|
end;
|
|
end;
|
|
|
|
|