openresty / lua-resty-core

New FFI-based API for lua-nginx-module
801 stars 272 forks source link

optimization: no need call ffi function to set resp header when value was empty string #382

Open ytlm opened 2 years ago

ytlm commented 2 years ago

I hereby granted the copyright of the changes in this pull request to the authors of this lua-resty-core project.

piotrp commented 2 years ago

I'm not sure it's a good idea, this would break removing of an already set header by passing an empty string