Do not force 'Content-Type' request header

Created on 21 March 2024, 8 months ago
Updated 2 May 2024, 7 months ago

Problem/Motivation

Commit https://git.drupalcode.org/project/views_json_source/-/merge_requests/6/... resolving issue https://www.drupal.org/project/views_json_source/issues/3389901 Allow select request method Fixed introduced a kind of default value for headers in the request that forces the value "application/json" when the configuration value is empty and this can prevent correct access to an API that does not accept this header in the request.

Proposed resolution

Rely on the value of the headers that is passed as an argument in the getRequestResponse method.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇵🇹Portugal joao.ramos.costa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024