fixed a test case for ngx.req.get_headers.
feature: reimplemented the ngx.header.HEADER API's write part with FFI.