[Pkg-javascript-commits] [ltx] 150/469: sasl: clean-up
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:01:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit af95cebd31264a5a0bc0e0b41cae574cf249b3ee
Author: Astro <astro at spaceboyz.net>
Date: Mon Oct 11 18:35:12 2010 +0200
sasl: clean-up
---
lib/xmpp/sasl.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/xmpp/sasl.js b/lib/xmpp/sasl.js
index 9ff35ff..e84722c 100644
--- a/lib/xmpp/sasl.js
+++ b/lib/xmpp/sasl.js
@@ -1,4 +1,5 @@
var crypto = require('crypto');
+var querystring = require('querystring');
function selectMechanism(mechs) {
if (mechs.indexOf("X-FACEBOOK-PLATFORM") >= 0)
@@ -39,7 +40,7 @@ function XFacebookPlatform() {
this.cnonce = generateNonce();
this.challenge = function(s) {
- dict = require('querystring').parse(s);
+ var dict = querystring.parse(s);
this.nonce_count++;
@@ -82,7 +83,7 @@ function DigestMD5() {
};
this.cnonce = generateNonce();
this.challenge = function(s) {
- dict = parseDict(s);
+ var dict = parseDict(s);
if (dict.realm)
this.realm = dict.realm;
//require('sys').puts("dict: "+JSON.stringify(dict));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list