Skip to content

Commit

Permalink
use new X-Stream-Client header
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Jul 2, 2015
1 parent 5295c0b commit aa2989c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ StreamClient.prototype = {
}

kwargs.headers.Authorization = signature;

// User agent can only be changed in server side mode
var headerName = (this.node) ? 'User-Agent' : 'X-Stream-Client';
kwargs.headers[headerName] = this.userAgent();
kwargs.headers['X-Stream-Client'] = this.userAgent();
return kwargs;
},

Expand Down

0 comments on commit aa2989c

Please sign in to comment.