Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: remove null terminator #2365

Merged
merged 1 commit into from
Sep 25, 2024

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