mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Rest api query should not crash if headers not defined
This commit is contained in:
parent
ced5bf2868
commit
589a2fff9e
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class RestapiQueryService
|
|||
def process
|
||||
url = options['url']
|
||||
method = options['method']
|
||||
headers = options['headers'].reject { |header| header[0].empty? }
|
||||
headers = (options['headers'] || []).reject { |header| header[0].empty? }
|
||||
headers = headers.to_h
|
||||
body = options['body']
|
||||
url_params = options['url_params']
|
||||
|
|
|
|||
Loading…
Reference in a new issue