get rid of user agent errors (#990)

This commit is contained in:
Gus Caplan
2016-12-15 10:32:06 -06:00
committed by Amish Shah
parent 36be4c47f6
commit 9c59b649ad

View File

@@ -45,7 +45,7 @@ class APIRequest {
} else if (this.data) {
apiRequest.send(this.data);
}
apiRequest.set('User-Agent', this.rest.userAgentManager.userAgent);
if (!this.rest.client.browser) apiRequest.set('User-Agent', this.rest.userAgentManager.userAgent);
return apiRequest;
}
}