From 7f537c189fc730d17fa38b294b3e54e6b5d78905 Mon Sep 17 00:00:00 2001 From: Pierre Chapuis Date: Mon, 25 Nov 2013 16:31:43 +0100 Subject: [PATCH] fix use of global --- src/url.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/url.lua b/src/url.lua index 7809535..fbd93d1 100644 --- a/src/url.lua +++ b/src/url.lua @@ -219,6 +219,7 @@ end -- corresponding absolute url ----------------------------------------------------------------------------- function _M.absolute(base_url, relative_url) + local base_parsed if base.type(base_url) == "table" then base_parsed = base_url base_url = _M.build(base_parsed)