Skip to content

Commit

Permalink
Merge pull request #219 from friggframework/feature/lef-734-quick-sha…
Browse files Browse the repository at this point in the history
…re-command

Fix/Add headers charset
  • Loading branch information
Max-SDSharp authored Sep 14, 2023
2 parents aeef30d + f21179e commit 28b475b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api-module-library/slack/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ class Api extends OAuth2Requester {
const options = {
url: this.baseUrl + this.URLs.postMessage,
body,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
};
const response = await this._post(options);
return response;
Expand Down Expand Up @@ -288,6 +291,9 @@ class Api extends OAuth2Requester {
const options = {
url: this.baseUrl + this.URLs.updateMessage,
body,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
};
const response = await this._post(options);
return response;
Expand All @@ -301,6 +307,9 @@ class Api extends OAuth2Requester {
const options = {
url: this.baseUrl + this.URLs.deleteMessage,
body,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
};
const response = await this._post(options);
return response;
Expand Down Expand Up @@ -513,6 +522,9 @@ class Api extends OAuth2Requester {
const options = {
url: this.baseUrl + this.URLs.openView,
body,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
};
const response = await this._post(options);
return response;
Expand All @@ -523,6 +535,9 @@ class Api extends OAuth2Requester {
const options = {
url: this.baseUrl + this.URLs.updateView,
body,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
};
const response = await this._post(options);
return response;
Expand All @@ -533,6 +548,9 @@ class Api extends OAuth2Requester {
const options = {
url: this.baseUrl + this.URLs.pushView,
body,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
};
const response = await this._post(options);
return response;
Expand Down

0 comments on commit 28b475b

Please sign in to comment.