Skip to content

offensive adding Content-Type always #909

Closed
@chipitsine

Description

@chipitsine

when I proxy requests to some http server, I expect the following behaviour:

if there's no Content-Type, so do not add one.
this is especially important for ajax file upload/download.

the default behaviour of nginx itself is expected, so header is not added.

but somehow, after nginx is compiled with lua-nginx-module, the deault behaviour is changed (due to "lua_use_default_type on")

I think, this lead to numerous misunderstanding and wrong installations. And I suggest to chenge the deault to "off"

yes, I can toggle that setting by myself, it is not that difficult. But I beleive that current default behaviour is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions