mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
fix: use passed method instead of resetting it
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {Logger} from '@openstapps/logger';
|
||||
import * as request from 'request-promise-native';
|
||||
import request from 'request-promise-native';
|
||||
import {
|
||||
AccessLevel,
|
||||
Branch,
|
||||
@@ -472,7 +472,7 @@ export class Api {
|
||||
...options,
|
||||
};
|
||||
|
||||
if (['DELETE', 'GET', 'POST', 'PUT'].includes(_options.method)) {
|
||||
if (!['DELETE', 'GET', 'POST', 'PUT'].includes(_options.method)) {
|
||||
_options.method = 'GET';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user