From f2c29f1be0d31b654c5c696ac142be642f8ab45e Mon Sep 17 00:00:00 2001 From: jetz Date: Thu, 22 May 2014 23:05:26 +0800 Subject: [PATCH] No local version in _req_header func.Fixed --- lib/resty/http/simple.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resty/http/simple.lua b/lib/resty/http/simple.lua index aab6d8d..153dc53 100644 --- a/lib/resty/http/simple.lua +++ b/lib/resty/http/simple.lua @@ -122,7 +122,7 @@ local function _req_header(self, opts) if not headers['Accept'] then headers['Accept'] = "*/*" end - if version == 0 and not headers['Connection'] then + if opts.version == 0 and not headers['Connection'] then headers['Connection'] = "Keep-Alive" end