Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3767] cherokee/trunk/cherokee/handler_proxy.c: Fixes reverse proxy so it handlers redirections (304 responses for

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Oct 31, 2009, 12:12 PM

Post #1 of 1 (41 views)
Permalink
[3767] cherokee/trunk/cherokee/handler_proxy.c: Fixes reverse proxy so it handlers redirections (304 responses for

Revision: 3767
http://svn.cherokee-project.com/changeset/3767
Author: alo
Date: 2009-10-31 20:12:07 +0100 (Sat, 31 Oct 2009)

Log Message:
-----------
Fixes reverse proxy so it handlers redirections (304 responses for
instance) without body correctly. It should fix the bug #619:
http://bugs.cherokee-project.com/619

Modified Paths:
--------------
cherokee/trunk/cherokee/handler_proxy.c

Modified: cherokee/trunk/cherokee/handler_proxy.c
===================================================================
--- cherokee/trunk/cherokee/handler_proxy.c 2009-10-31 10:04:44 UTC (rev 3766)
+++ cherokee/trunk/cherokee/handler_proxy.c 2009-10-31 19:12:07 UTC (rev 3767)
@@ -1067,7 +1067,7 @@
(! http_code_with_body (HANDLER_CONN(hdl)->error_code)))
{
cherokee_buffer_add_str (buf_out, "Content-Length: 0"CRLF);
- }
+ }

TRACE(ENTRIES, " IN - Header:\n%s", buf_in->buf);
TRACE(ENTRIES, " IN - Keepalive: %d\n", hdl->pconn->keepalive_in);
@@ -1204,6 +1204,15 @@
return ret_ok;
}

+ /* Might have already finished (Content-length: 0)
+ */
+ if ((hdl->pconn->enc == pconn_enc_known_size) &&
+ (hdl->pconn->sent_out >= hdl->pconn->size_in))
+ {
+ hdl->got_all = true;
+ return ret_eof;
+ }
+
/* Read
*/
ret = cherokee_socket_bufread (&hdl->pconn->socket, buf,

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.