Changeset 67 for trunk/Components/CoolWeb/WebServer/UHTTPServerTCP.pas
- Timestamp:
- Dec 25, 2011, 9:40:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/CoolWeb/WebServer/UHTTPServerTCP.pas
r61 r67 88 88 SessionStorage.Load(HandlerData); 89 89 90 Response. Stream.Clear;90 Response.Content.Clear; 91 91 Response.Headers.Values['Content-Type'] := 'text/html'; 92 92 … … 100 100 with Response do begin 101 101 SendString('HTTP/1.0 200 OK'#13#10); 102 Headers.Values['Content-Length'] := IntToStr( Stream.Size);102 Headers.Values['Content-Length'] := IntToStr(Content.Size); 103 103 Headers.Values['Connection'] := 'close'; 104 104 Headers.Values['Date'] := RFC822DateTime(Now); … … 115 115 end; 116 116 SendString(#13#10); 117 SendBuffer( Stream.Memory, Stream.Size);117 SendBuffer(Content.Memory, Content.Size); 118 118 SendString(#13#10); 119 119 end;
Note:
See TracChangeset
for help on using the changeset viewer.