Skip to content

Commit

Permalink
Dynamic response classes.
Browse files Browse the repository at this point in the history
Replaced node-fetch with internal fetch, or another as a GitLab.Options.fetchMethod option.
  • Loading branch information
rosbitskyy committed Oct 26, 2023
1 parent c3fb6d0 commit d43c21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitLab/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Request {
...(body && {headers: {...options.headers, 'Content-Length': body.length}}),
timeout: 30000,
}
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
const req = https.request(url, options, (res) => {
if (res.statusCode < 200 || res.statusCode > 304) {
return resolve(this.#response({
Expand Down

0 comments on commit d43c21e

Please sign in to comment.