Branch: Tag:

1997-11-12

1997-11-12 18:04:53 by David Hedbor <david@hedbor.org>

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))