ts-lua icon indicating copy to clipboard operation
ts-lua copied to clipboard

write cache failed when use 'h' option

Open zhyuri opened this issue 9 years ago • 2 comments

Hi, thanks for the amazing plugin.

I have some trouble using ts.cache_write api to write http object.

fd = ts.cache_open(key, TS_LUA_CACHE_WRITE, 'uh')

 n = ts.cache_write(fd, data)

the data cannot be written into cache. There are also no error report. without h option, everything is fine.

I'm using ATS 6.2.0 with ts_lua 0.1.7

zhyuri avatar Sep 01 '16 06:09 zhyuri

如果设置h选项的话,cache_write怕不行,因为http格式数据的存储是分header和body的

portl4t avatar Sep 02 '16 07:09 portl4t

唔...看来只能想想办法从底层改造一下InkAPI了,我再想想办法~~

zhyuri avatar Sep 03 '16 14:09 zhyuri