projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
961bfcf
)
* luci/libs: drop depency to luci.bits use tonumber() for hex decoding
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 15 Jun 2008 12:57:02 +0000
(12:57 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 15 Jun 2008 12:57:02 +0000
(12:57 +0000)
libs/web/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/http/protocol.lua
b/libs/web/luasrc/http/protocol.lua
index 31e8f5e8da973c233f99a641a49e4dd68ab548a4..2c83257c953ad2fbbc68c528913147e5dde72512 100644
(file)
--- a/
libs/web/luasrc/http/protocol.lua
+++ b/
libs/web/luasrc/http/protocol.lua
@@
-16,7
+16,6
@@
$Id$
module("luci.http.protocol", package.seeall)
require("luci.util")
-require("luci.bits")
HTTP_MAX_CONTENT = 1048576 -- 1 MB
@@
-29,7
+28,7
@@
HTTP_DEFAULT_VERSION = "1.0" -- HTTP default version
function urldecode( str )
local function __chrdec( hex )
- return string.char(
luci.bits.Hex2Dec( hex
) )
+ return string.char(
tonumber( hex, 16
) )
end
if type(str) == "string" then