1997-11-12
1997-11-12 18:04:53 by David Hedbor <david@hedbor.org>
-
537ec857ea6fbed2c6f3fc4b19691b2ee4d92812
(11 lines)
(+7/-4)
[
Show
| Annotate
]
Branch: 5.2
Fixed setting of cookies with /<...>/ in the root directory.
Rev: server/protocols/http.pike:1.47
1:
// This is a roxen module. (c) Informationsvävarna AB 1996.
- constant cvs_version = "$Id: http.pike,v 1.46 1997/10/05 03:37:49 grubba Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.47 1997/11/12 18:04:53 neotron Exp $";
// HTTP protocol module.
#include <config.h>
private inherit "roxenlib";
170:
({"<",">","<",">"})),"/<%*s>/%s",url)!=2)
url = "/";
- if ((base[-1] == '/') && (url[0] == '/')) {
+ if ((base[-1] == '/') && (strlen(url) && url[0] == '/')) {
url = base + url[1..];
} else {
url = base + url;
694: Inside #if defined(KEEP_CONNECTION_ALIVE)
void keep_connection_alive()
{
pipe=0;
+ if(my_fd) {
my_fd->set_read_callback(got_data);
my_fd->set_close_callback(end);
-
+ }
/*my_fd->set_write_callback(lambda(){});*/
if(cache && strlen(cache))