Explorar el Código

* Default native implementation, set contentlength

Michael VAN CANNEYT hace 2 años
padre
commit
28a295d234
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;