Header removed from driver request
authors71221 <sukeshac@huawei.com>
Mon, 10 Oct 2016 07:31:38 +0000 (15:31 +0800)
committers71221 <sukeshac@huawei.com>
Mon, 10 Oct 2016 07:31:38 +0000 (15:31 +0800)
Change-Id: I88e2929439dd60d5108c5473d8465d76e768fefb
Signed-off-by: s71221 <sukeshac@huawei.com>
msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/plugins/driver_manager.lua

index 4caa9e2..1dc1af7 100644 (file)
@@ -41,6 +41,7 @@ end
 local function get_driver_url(driver_header)
   local cjson = require "cjson"
   local query_url = get_query_url(driver_header)
+  ngx.req.clear_header(_HEADER)
   local res = ngx.location.capture(query_url, { method = ngx.HTTP_GET})
   ngx.log (ngx.ERR, "Driver manager resp url : ", tostring(res.body))
   if (res.status == 200 and res.body ~= nil and res.body ~= '')