[tarantool-patches] Re: [PATCH] httpc: add checking of headers in httpc:request

Alexander Turenko alexander.turenko at tarantool.org
Tue Jan 29 23:32:21 MSK 2019


> >           while (lua_next(L, -2) != 0) {
> > +            int header_type = lua_type(L, -1);
> > +            if (header_type != LUA_TSTRING) {
> 
> 2. Why so complex instead of just lua_isstring()?

It is not quite same. lua_isstring() accepts numbers as well as strings.




More information about the Tarantool-patches mailing list