Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Modifies default protocol to https
  • Loading branch information
phumpal committed Jan 26, 2016
commit d9c206ecb7b6986fc6a7b35ea29a976c6a696b47
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# airbrake

Node.js client for [airbrakeapp.com][], formerly known as [hoptoadapp.com][].
Node.js client for [airbrake.io][], formerly known as [hoptoadapp.com][].

[airbrakeapp.com]: http://airbrakeapp.com/
[airbrake.io]: https://airbrake.io
[hoptoadapp.com]: http://robots.thoughtbot.com/post/7665411707/hoptoad-is-now-airbrake

## Install
Expand Down Expand Up @@ -174,7 +174,7 @@ The API key to use.

The name of the server environment this is running in.

### airbrake.host = 'http://' + os.hostname()
### airbrake.host = 'https://' + os.hostname()

The base url for errors. If `err.url` is not set, `airbrake.host` is used
instead. If `err.url` is a relative url starting with `'/'`, it is appended
Expand All @@ -188,7 +188,7 @@ The root directory of this project.

The version of this app. Set to a semantic version number, or leave unset.

### airbrake.protocol = 'http'
### airbrake.protocol = 'https'

The protocol to use.

Expand Down
4 changes: 2 additions & 2 deletions lib/airbrake.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ util.inherits(Airbrake, EventEmitter);
function Airbrake() {
this.key = null;

this.host = 'http://' + os.hostname();
this.host = 'https://' + os.hostname();
this.env = process.env.NODE_ENV || 'development';
this.projectRoot = null;
this.appVersion = null;
this.timeout = 30 * 1000;
this.developmentEnvironments = ['development', 'test'];
this.consoleLogError = false;

this.protocol = 'http';
this.protocol = 'https';
this.serviceHost = process.env.AIRBRAKE_SERVER || 'api.airbrake.io';
this.requestOptions = {};
}
Expand Down