Skip to content

Commit

Permalink
Merge pull request #5 from alexstep/alexstep-patch-1
Browse files Browse the repository at this point in the history
Inappropriate request headers removed. Fixes #3
  • Loading branch information
alexstep authored Jan 7, 2022
2 parents 1c7ff83 + 5024357 commit a7be432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ class NalogAPI {
headers: {
accept: 'application/json, text/plain, */*',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'cache-control': 'no-cache',
'content-type': 'application/json',
pragma: 'no-cache'
},
referrer: 'https://lknpd.nalog.ru/',
referrerPolicy: 'strict-origin-when-cross-origin',
Expand Down Expand Up @@ -132,9 +130,7 @@ class NalogAPI {
headers: {
accept: 'application/json, text/plain, */*',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'cache-control': 'no-cache',
'content-type': 'application/json',
pragma: 'no-cache'
},
referrer: 'https://lknpd.nalog.ru/sales',
referrerPolicy: 'strict-origin-when-cross-origin',
Expand Down Expand Up @@ -165,9 +161,7 @@ class NalogAPI {
authorization: 'Bearer ' + (await this.getToken()),
accept: 'application/json, text/plain, */*',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'cache-control': 'no-cache',
'content-type': 'application/json',
pragma: 'no-cache'
},
referrer: 'https://lknpd.nalog.ru/sales/create',
referrerPolicy: 'strict-origin-when-cross-origin',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moy-nalog",
"version": "1.0.4",
"version": "1.0.5",
"description": "Обёртка для API сервиса lknpd.nalog.ru",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a7be432

Please sign in to comment.