Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't require "http.util" from inside of openresty #98

Closed
daurnimator opened this issue Mar 28, 2018 · 1 comment
Closed

Can't require "http.util" from inside of openresty #98

daurnimator opened this issue Mar 28, 2018 · 1 comment

Comments

@daurnimator
Copy link
Owner

Due to use of coroutine.wrap at module load time. See openresty/lua-nginx-module#1292

@daurnimator
Copy link
Owner Author

I guess we could skip the feature check if luajit is in use (via presence of jit global + jit.version_num?)

Or should it only special case the presence of ngx global? ==> What if someone is mocking an ngx environment with lua-http?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant