Skip to content

Commit

Permalink
update for nodejs.org moving to ttps
Browse files Browse the repository at this point in the history
  • Loading branch information
No9 committed Apr 4, 2015
1 parent ba2ed47 commit ac02c67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/doge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var http = require('http'),
https = require('https'),
connect = require('connect'),
httpProxy = require('http-proxy');

Expand Down Expand Up @@ -44,7 +45,9 @@ selects.push(simpleselect);
var app = connect();

var proxy = httpProxy.createProxyServer({
target: 'http://nodejs.org'
target: 'https://nodejs.org',
agent : https.globalAgent,
headers:{ host: 'nodejs.org' }
})


Expand Down

0 comments on commit ac02c67

Please sign in to comment.