Browse Source

* Default native implementation, set contentlength

Michael VAN CANNEYT 2 năm trước cách đây
mục cha
commit
28a295d234
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      packages/fcl-web/examples/simpleserver/simpleserver.pas

+ 2 - 1
packages/fcl-web/examples/simpleserver/simpleserver.pas

@@ -16,7 +16,7 @@
 {$h+}
 
 { $DEFINE USEGNUTLS}
-{$DEFINE USEMICROHTTP}
+{ $DEFINE USEMICROHTTP}
 
 program simpleserver;
 
@@ -138,6 +138,7 @@ begin
     DumpRequest(aRequest,L);
     L.AddStrings(['</body>','</html>']);
     AResponse.Content:=L.Text;
+    AResponse.ContentLength:=Length(AResponse.Content);
     AResponse.SendResponse;
   finally
     L.Free;