Skip to content

Conversation

@n-bes
Copy link
Contributor

@n-bes n-bes commented Sep 24, 2024

Without this patch I got:

> curl: (8) Nul byte in header
location = /bye {
    content_by_lua_block {
        local resp = require "ngx.resp"
        resp.set_status(500, "custom status")
        ngx.say("set_status_and_reason")
    }
}

@n-bes n-bes changed the title fix: remove null terminator bugfix: remove null terminator Sep 24, 2024
@n-bes
Copy link
Contributor Author

n-bes commented Sep 24, 2024

Introduced by 3416740

@zhuizhuhaomeng zhuizhuhaomeng merged commit e1ff117 into openresty:master Sep 25, 2024
2 of 4 checks passed
@n-bes n-bes deleted the fix/null_terminator branch September 26, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants