Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bump for scheme param so that https works

  • Loading branch information...
commit c2a23399824de817065de050dc63304cde34f57f 1 parent 16aa9da
@substack authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/request.js
  2. +1 −1  package.json
View
6 lib/request.js
@@ -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) {
View
2  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",
Please sign in to comment.
Something went wrong with that request. Please try again.