Skip to content

Commit e581a99

Browse files
committed
Null Coalesce the request method.
Signed-off-by: Mike Beattie <mike@ethernal.org>
1 parent 47199c4 commit e581a99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ function APIRequest(jsonObj) {
105105
if (settings.advanced_settings) {
106106
if (do_status_poll) url = settings.poll_status_url;
107107
if (settings.request_parameters) {
108-
body = settings.request_body;
109-
method = do_status_poll ? settings.poll_status_method : settings.request_method;
108+
body = settings.request_body;
109+
method = (do_status_poll ? settings.poll_status_method : settings.request_method) ?? method;
110110
}
111111
}
112112

0 commit comments

Comments
 (0)