projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c5bbf9
)
* libs/http: removed debugging prints from http.protocol.date
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 26 Jun 2008 18:42:28 +0000
(18:42 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 26 Jun 2008 18:42:28 +0000
(18:42 +0000)
libs/http/luasrc/http/protocol/date.lua
patch
|
blob
|
history
diff --git
a/libs/http/luasrc/http/protocol/date.lua
b/libs/http/luasrc/http/protocol/date.lua
index b9b55cc33d6d0ab473b693ad79a3d145995afc43..d403604945d4b285fd77686d84756f87126e15d2 100644
(file)
--- a/
libs/http/luasrc/http/protocol/date.lua
+++ b/
libs/http/luasrc/http/protocol/date.lua
@@
-151,8
+151,6
@@
end
-- Convert a HTTP date to unixtime
function to_unix(date)
- print("D: "..date)
-
local wd, day, mon, yr, hr, min, sec, tz = date:match(
"([A-Z][a-z][a-z]), ([0-9]+) " ..
"([A-Z][a-z][a-z]) ([0-9]+) " ..
@@
-160,10
+158,7
@@
function to_unix(date)
"([A-Z0-9%+%-]+)"
)
- print(day .. " | " .. mon .. " | " .. yr .. " | " .. tz)
-
if day and mon and yr and hr and min and sec then
-
-- find month
local month = 1
for i = 1, 12 do