mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
http: Fix incorrect use of self in param encoding.
This commit is contained in:
@@ -4,12 +4,12 @@ Meteor.http = Meteor.http || {};
|
||||
(function() {
|
||||
|
||||
Meteor.http._encodeParams = function(params) {
|
||||
self = this;
|
||||
var buf = [];
|
||||
_.each(params, function(value, key) {
|
||||
if (buf.length)
|
||||
buf.push('&');
|
||||
buf.push(self._encodeString(key), '=', self._encodeString(value));
|
||||
buf.push(Meteor.http._encodeString(key), '=',
|
||||
Meteor.http._encodeString(value));
|
||||
});
|
||||
return buf.join('').replace(/%20/g, '+');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user