Project

General

Profile

Bug #1678 ยป fix-x-rewrite.diff

patch for fixing broken x-rewrite -- ytht.net - Anonymous, 2008-10-06 13:02

View differences:

src/mod_proxy_core.c 6 Oct 2008 09:01:04 -0000 1.3
1732 1732
			return HANDLER_WAIT_FOR_EVENT;
1733 1733
		}
1734 1734

  
1735 1735
		if(sess->is_request_finished) {
1736 1736
			sess->recv->is_closed = 1;
1737 1737
			con->send->is_closed = 1;
1738 1738
			/* recycle proxy connection. */
1739 1739
			proxy_recycle_backend_connection(srv, p, sess);
1740 1740

  
1741 1741
			sess->state = PROXY_STATE_FINISHED;
1742 1742

  
1743 1743
			if (sess->do_internal_redirect) {
1744 1744
				/* now it becomes tricky
1745 1745
				 *
1746 1746
				 * mod_staticfile should handle this file for us
1747 1747
				 * con->mode = DIRECT is taking us out of the loop */
1748
				con->send->is_closed = 0;
1748 1749
				con->mode = DIRECT;
1749 1750
				con->http_status = 0;
1750 1751

  
1751 1752
				return HANDLER_COMEBACK;
1752 1753
			}
1753 1754
		}
1754 1755

  
1755 1756
		/* we wrote something into the the send-buffers,
1756 1757
		 * call the connection-handler to push it to the client */
1757 1758
		joblist_append(srv, con);
1758 1759

  
1759 1760
		break;
1760 1761
	default:
1761 1762
		break;
1762 1763
	}
1763 1764

  
    (1-1/1)