mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Fix for incorrect headers
This commit is contained in:
parent
ab237be807
commit
d41a70f502
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ class RestapiQueryService
|
|||
url = options['url']
|
||||
method = options['method']
|
||||
headers = options['headers'].reject { |header| header[0].empty? }
|
||||
headers = headers.to_h
|
||||
body = options['body']
|
||||
url_params = options['url_params']
|
||||
|
||||
|
|
@ -30,7 +31,7 @@ class RestapiQueryService
|
|||
|
||||
if source_options['add_token_to'] === 'header'
|
||||
headers = {
|
||||
**headers.to_h,
|
||||
**headers,
|
||||
'Authorization': "Bearer #{token}"
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue