Changeset 42 for trunk/WebServer/UHTTPServerTCP.pas
- Timestamp:
- Nov 21, 2010, 8:49:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebServer/UHTTPServerTCP.pas
r32 r42 6 6 7 7 uses 8 Classes, SysUtils, UHTTPServer, UTCPServer, UStringListEx, SynaUtil;8 Classes, SysUtils, UHTTPServer, UTCPServer, SpecializedList, SynaUtil; 9 9 10 10 type … … 30 30 Line: string; 31 31 LineIndex: Integer; 32 LineParts: T StringListEx;32 LineParts: TListString; 33 33 HandlerData: THTTPHandlerData; 34 34 I: Integer; … … 46 46 LineIndex := 0; 47 47 try 48 LineParts := T StringListEx.Create;48 LineParts := TListString.Create; 49 49 repeat 50 50 Line := RecvString(10000); 51 51 if (LineIndex = 0) then begin 52 LineParts.Explode( ' ', Line);52 LineParts.Explode(Line, ' ', StrToStr); 53 53 if (LineParts.Count >= 3) then begin 54 54 Request.Method := LineParts[0]; … … 59 59 end; 60 60 end else begin 61 LineParts.Explode( ' ', Line, 2);61 LineParts.Explode(Line, ' ', StrToStr, 2); 62 62 if (LineParts.Count = 2) and (LineParts[0][Length(LineParts[0])] = ':') then begin 63 63 LineParts[0] := Copy(LineParts[0], 1, Length(LineParts[0]) - 1);
Note:
See TracChangeset
for help on using the changeset viewer.