Skip to content

Commit

Permalink
examples: fix github view example
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Sep 8, 2014
1 parent 3d188fe commit b97f6eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/view-constructor/github-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ function GithubView(name, options){
GithubView.prototype.render = function(options, fn){
var self = this;
var opts = {
host: 'rawgithub.com',
port: 80,
host: 'raw.githubusercontent.com',
port: 443,
path: this.path,
method: 'GET'
};

http.request(opts, function(res) {
https.request(opts, function(res) {
var buf = '';
res.setEncoding('utf8');
res.on('data', function(str){ buf += str });
Expand Down

0 comments on commit b97f6eb

Please sign in to comment.