busybox/networking
Denys Vlasenko 9fe8bd8d61 httpd: do not default to Content-type: application/octet-stream
Instead, simply don't send this header.

On Mon, Apr 2, 2018 at 8:17 PM, xisd <xisd-dev@riseup.net> wrote:
> I had some trouble using busybox httpd to serve a static website and I
> thought the issue might be of interest.
>
> My problem is related to something that seem quite common for static
> site generator :  the use of html files without the '.html' extension
> (it is called 'clean url'...)
>
> Most web server guess that these files are html and display them like
> any other .html files.
>
> From what I understood, the MIME type for files without extension in
> busybox htttp default settings is 'application/octet-stream', and
> because of that 'clean url' pages are not displayed.
>
> It is only trouble because I wanted to deploy my website on freshly
> installed linux without editing any configuration.
>
> The default MIME setting make sense to me as it is, I just thought that
> might be worth mentioning since the use of 'clean url' seem to be a
> common practice for static sites generators (the one I use is callled
> 'yellow' (https://github.com/datenstrom/yellow))
>
> Here is a link for the related issue on github :
> https://github.com/datenstrom/yellow/issues/317

function                                             old     new   delta
send_headers                                         702     718     +16
send_headers_and_exit                                 23      20      -3
handle_incoming_and_exit                            2794    2791      -3
send_file_and_exit                                   772     756     -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 16/-22)             Total: -6 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-04-07 01:13:30 +02:00
..
2017-07-21 09:50:55 +02:00
2018-02-11 21:16:24 +01:00
2017-08-06 20:14:02 +02:00
2017-07-21 09:50:55 +02:00
2017-07-21 09:50:55 +02:00
2018-02-06 15:48:12 +01:00
2018-03-08 16:06:18 +01:00
2017-08-08 21:55:02 +02:00
2017-07-21 09:50:55 +02:00
2017-08-08 21:55:02 +02:00
2017-07-21 09:50:55 +02:00
2016-03-04 07:36:04 +01:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2018-03-20 11:41:51 +01:00
2018-02-08 08:42:37 +01:00
2017-08-08 21:55:02 +02:00
2017-12-31 17:30:02 +01:00
2017-04-03 21:53:29 +02:00
2017-01-19 15:51:00 +01:00
2017-01-19 15:51:00 +01:00
2018-02-14 17:37:41 +01:00
2017-07-15 17:13:08 +02:00
2017-08-08 21:55:02 +02:00