Hi,
yes the Header Connection is set twice. Here is my code:
procedure TUrlHandlerSynchronize.Execute;
var
Headers : String;
begin
Headers := 'Connection: close' + #13#10;
AnswerString('200 OK',
'application/json;charset=utf-8',Headers,'{"status":"ok","msg":""}');
Finish;
end;
The result in Chrome Advanced Rest Client is:
Content-Type: application/json;charset=utf-8
Connection: Keep-Alive
Content-Length: 24
Connection: close
2014-07-30 20:17 GMT+02:00 Angus Robertson - Magenta Systems Ltd <
[email protected]>:
> > yes I know, but if I set the Header manual to close it is set
> > twice?!
> >
> > > > is it possible to set the returning header from an
> > > HttpAppServer to
> > > > close (instead of Keep-Alive)? How can I do this?
>
> So you are already adding the correct header to close the connection, and
> your
> problem is not how to set headers, but how to stop duplicate headers?
>
> Example headers might help to explain your real problem.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
Stefan Göppert Softwareentwicklung
Höltene Klinke 89
48653 Coesfeld / Deutschland
tel.: +49 / 02541 / 8475530
mail: [email protected]
web: http://www.magicdesignssoftware.de
facebook: https://www.facebook.com/magicdesignssoftware
google+: https://www.google.com/+MagicdesignssoftwareDe
twitter: https://twitter.com/StefanGoeppert
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be