Skip to content

Commit

Permalink
Do not set User-Agent because it causes errors in browsers
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
brycekahle committed Mar 11, 2016
1 parent 1b4238a commit 48ac90b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Particle.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ class Particle {
const uri = `/v1/binaries/${binaryId}`;
const req = request('get', uri);
req.use(this.prefix);
req.set('User-Agent', 'particle-api-js/' + Particle.VERSION);
this.headers(req, auth);
if (this.debug) {
this.debug(req);
Expand Down Expand Up @@ -423,7 +422,6 @@ class Particle {
return new Promise((fulfill, reject) => {
const req = request(method, uri);
req.use(this.prefix);
req.set('User-Agent', 'particle-api-js/' + Particle.VERSION);
this.headers(req, auth);
if (query) {
req.query(query);
Expand Down Expand Up @@ -480,6 +478,4 @@ class Particle {
}
}

Particle.VERSION = '5.2.2';

export default Particle;

0 comments on commit 48ac90b

Please sign in to comment.