announce close connections for now. bug #24006

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26822 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Dave Wetzel 2008-08-28 06:42:53 +00:00
parent 14fdcc1b2c
commit 51c55c7647
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2008-08-28 David Wetzel <dave@turbocat.de>
* bug #24006 keep-alive is not implemented.
announce close connections for now
2008-08-20 David Wetzel <dave@turbocat.de>
GSWeb.framework:
* fixed many warnings

View file

@ -212,7 +212,10 @@ void _sendMessage(GSWMessage * message, NSFileHandle* fh, NSString * httpVersion
_appendMessageHeaders(message,headers);
if ([httpVersion isEqualToString:HTTP11]) {
if (keepAlive == NO) {
// bug #24006 keep-alive is not implemented.
// I am uable to reproduce the need for double clicking on links/forms,
// but for now, we send close. -- dw
if (YES /*keepAlive == NO*/) {
[headers appendString:@"connection: close\r\n"];
} else {
[headers appendString:@"connection: keep-alive\r\n"];