Branch: Tag:

2015-01-16

2015-01-16 14:58:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL Proxy: Now seems to work again. Fixes [bug 4066 (#4066)].

Connect requests look like HTTP/0.9 requests, so don't force them to GET.

Avoid closing the client connection early.

Fixed typo in default "No such host" reply.

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.580 2009/01/15 17:07:08 mast Exp $"; + constant cvs_version = "$Id$";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
771:    sscanf( method, "%s%*[\r\n]", method );       clientprot = prot = "HTTP/0.9"; -  if(method != "PING") -  method = "GET"; // 0.9 only supports get. -  else -  { +  if(method == "PING") {    // FIXME: my_fd_busy.   #ifdef CONNECTION_DEBUG    werror ("HTTP[%s]: Response =============================================\n"
786:    TIMER_END(parse_got_2_parse_line);    TIMER_END(parse_got_2);    return 2; -  } +  } else if (method != "CONNECT") +  method = "GET"; // 0.9 only supports get. +     data = ""; // no headers or extra data...    sscanf( f, "%s%*[\r\n]", f );    if (sizeof(sl) == 1)