Changeset 130 for trunk/Packages/CoolWeb/WebServer/UHTTPServerTCP.pas
- Timestamp:
- Mar 18, 2022, 1:32:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/WebServer/UHTTPServerTCP.pas
r100 r130 27 27 28 28 procedure Register; 29 29 30 30 31 implementation … … 71 72 Request.Query.Clear; 72 73 end; 74 // Clean empty path parts 75 for I := Request.Path.Count - 1 downto 0 do 76 if Request.Path[I] = '' then Request.Path.Delete(I); 73 77 end; 74 78 end else begin … … 103 107 Response.Content.Clear; 104 108 Response.Headers.Add('Content-Type', 'text/html'); 105 106 107 109 108 110 if Assigned(OnRequest) then OnRequest(HandlerData) … … 153 155 destructor THTTPServerTCP.Destroy; 154 156 begin 155 Socket.Free;156 RequestHandlerList.Free;157 inherited Destroy;157 FreeAndNil(Socket); 158 FreeAndNil(RequestHandlerList); 159 inherited; 158 160 end; 159 161
Note:
See TracChangeset
for help on using the changeset viewer.