Fix the code that detects the end of the headers in mod_proxy_fcgi. In
the old code, we'd fail to detect the end of the headers if they were split over multiple fastcgi records, or if the cgi script used \n at the end of each header instead of \r\n. * modules/proxy/mod_proxy_fcgi.c (HDR_STATE_READING_HEADERS, HDR_STATE_GOT_CR, HDR_STATE_GOT_CRLF, HDR_STATE_GOT_CRLFCR, HDR_STATE_GOT_LF, HDR_STATE_DONE_WITH_HEADERS): Constants to track where we are in parsing the end of the headers. (handle_headers): Take the current parsing state as an argument, use a state machine to detect the end of the headers instead of strstr. (dispatch): Pass the state to handle_headers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/fcgi-proxy-dev@371428 13f79535-47bb-0310-9956-ffa450edef68
parent
c1184374
Please register or sign in to comment