liseen / lua-resty-http

Lua http client driver for the ngx_lua based on the cosocket API
188 stars 70 forks source link

示例代码是不是有问题? #14

Closed aCayF closed 11 years ago

aCayF commented 11 years ago

示例给出了可以在request里添加 headers = { Cookie = "ABCDEFG", ["Content-Type"] = "application/x-www-form-urlencoded" }这个元素,很明显这里添加的cookie不是table类型,而翻看http.lua源码的296行,添加的cookie元素必须是一个table类型才会被正确解析,不知道我的理解对不对?

aCayF commented 11 years ago

https://github.com/liseen/lua-resty-http/pull/16