daurnimator / lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
https://daurnimator.github.io/lua-http/
MIT License
778 stars 80 forks source link

try using native bitwise operations without checking lua version #177

Closed jprjr closed 3 years ago

jprjr commented 3 years ago

This is an alternative to #174

Rather than relying on _VERSION == "Lua 5.3", this just tries loading the Lua 5.3+ wrapper table no matter what. Assuming future versions of Lua keep bitwise ops, this should work on future versions of Lua.

Plus it should be compatible with forks/renames/etc.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.009%) to 87.79% when pulling 702a1260e24966b0ae07668e33359914a5405c4e on jprjr:future-lua into 47225d081318e65d5d832e2dd99ff0880d56b5c6 on daurnimator:master.

daurnimator commented 3 years ago

See #180