# HackCV

Hacks on Computer Vision

## 在Lua + Nginx上踩过的坑

2014.09.18

1. 返回的HTTP状态码问题；
2. 多Range请求的Content-Length和多Range的长度不一致的问题。

Read and write the current request’s response status. This should be called before sending out the response headers. Setting ngx.status after the response header is sent out has no effect but leaving an error message in your nginx’s error log file:

__EOF__