[OpenWrt-Tickets] [OpenWrt] #3202: Remove patch 410-httpd_cgi_headers.patch from busybox
OpenWrt
openwrt-devel at lists.openwrt.org
Wed Mar 5 10:00:05 CET 2008
#3202: Remove patch 410-httpd_cgi_headers.patch from busybox
----------------------------------+-----------------------------------------
Reporter: lorenz.schori at gmx.ch | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Keywords:
----------------------------------+-----------------------------------------
The purpose of
[source:trunk/package/busybox/patches/410-httpd_cgi_headers.patch?rev=9463]
is to fix HTTP answers from cgi-scripts with a custom HTTP status-code
lacking the Content-type header. However this mechanism kicks in as soon
as the cgi-script outputs at least 4 bytes, which may lead to a premature
end of the HTTP-header ("Content-type: text/plain\r\n\r\n"). Every header
line the script outputs after that will loose its effect and will be
visible in the browser.
I propose to remove this patch. Developers of cgi-scripts will have full
control (and responsibility) over the status and the headers of the HTTP-
response which is not a bad thing in my opinion.
--
Ticket URL: <https://dev.openwrt.org/ticket/3202>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
More information about the openwrt-tickets
mailing list