Skip to content

Commit 9bcd5aa

Browse files
committed
Add missing headers
1 parent 9013d9d commit 9bcd5aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Afip.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function Afip(options = {}){
143143

144144
this.AdminClient.defaults.headers.common['sdk-version-number'] = this.sdk_version_number;
145145
this.AdminClient.defaults.headers.common['sdk-library'] = 'javascript';
146+
this.AdminClient.defaults.headers.common['sdk-environment'] = this.options['production'] === true ? "prod" : "dev";
146147

147148
if (this.options['access_token']) {
148149
this.AdminClient.defaults.headers.common['Authorization'] = `Bearer ${this.options['access_token']}`;

0 commit comments

Comments
 (0)