Skip to content

Commit

Permalink
bump for scheme param so that https works
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jan 20, 2012
1 parent 16aa9da commit c2a2339
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/request.js
Expand Up @@ -8,9 +8,11 @@ var Request = module.exports = function (xhr, params) {

var uri = params.host + ':' + params.port + (params.path || '/');

xhr.open( params.method || 'GET',
xhr.open(
params.method || 'GET',
(params.scheme || 'http') + '://' + uri,
true);
true
);

if (params.headers) {
Object.keys(params.headers).forEach(function (key) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name" : "http-browserify",
"version" : "0.0.1",
"version" : "0.0.2",
"description" : "http module compatability for browserify",
"main" : "index.js",
"browserify" : "browser.js",
Expand Down

0 comments on commit c2a2339

Please sign in to comment.