Notice: Undefined index: sub-content-type in Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer->normalize()

Created on 17 March 2022, over 2 years ago
Updated 1 January 2024, 11 months ago

Problem/Motivation

In MultiresponseJsonNormalizer, lines 19-20 we have a weird setting of $headers variable and it cause PHP notices in dblog:

    // Prepare the root content type header.
    $headers = ['Content-Type' => 'application/json'];
    $headers = ['X-Sub-Content-Type' => $context['sub-content-type']];

Proposed resolution

Fix this issue in the code.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇦Ukraine quadrexdev Lutsk

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024