Permalink
Browse files

fixed problem with http client

  • Loading branch information...
1 parent 7d903a9 commit c6fdcf096b17e9bc451e0aabac440b7349a9b28c @matthewfl matthewfl committed Dec 18, 2010
Showing with 5 additions and 4 deletions.
  1. +1 −0 Bespin/control.js
  2. +1 −1 sandbox/box/http.js
  3. +3 −3 sandbox/modules.js
View
@@ -680,6 +680,7 @@ exports.deleteDomainCommand = function (args, request) {
}
});
Ajax.send();
+ track("delete-domain");
};
exports.docsCommand = function () {
View
@@ -11,7 +11,7 @@ exports.createServer = function (fun) {
exports.createClient = function (port, host) {
// port is locked to be 80 all the time
- return require('_http_client').create(host);
+ return require('_http_client').create(port, host);
};
exports.STATUS_CODES = {
View
@@ -44,10 +44,10 @@ exports.querystring = function (context) {
var _http_client;
exports._http_client = function (context) {
- _http_client = _http_client || require('http');
+ _http_client = _http_client || require('http')
return {
- create: function (host) {
- _http_client.createClient(80, host);
+ create: function (port, host) {
+ return _http_client.createClient(80, host);
}
};
};

0 comments on commit c6fdcf0

Please sign in to comment.