Software /
code /
prosody
Diff
util/sasl/digest-md5.lua @ 2936:c186b4883b8d
util.sasl.digest-md5: Removed unnnecessary check (which included a nil global access).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 24 Mar 2010 00:07:17 +0500 |
parent | 2569:8474ea768c89 |
child | 2998:36c169ed1576 |
child | 3092:d32935878661 |
line wrap: on
line diff
--- a/util/sasl/digest-md5.lua Wed Mar 24 00:05:55 2010 +0500 +++ b/util/sasl/digest-md5.lua Wed Mar 24 00:07:17 2010 +0500 @@ -35,8 +35,6 @@ local function serialize(message) local data = "" - if type(message) ~= "table" then error("serialize needs an argument of type table.") end - -- testing all possible values if message["realm"] then data = data..[[realm="]]..message.realm..[[",]] end if message["nonce"] then data = data..[[nonce="]]..message.nonce..[[",]] end