Skip to content

charset=UTF-8 in Response Header Causes Matching Failure in Code #4189

@mrdaios

Description

@mrdaios

First of all, I would like to thank the author for their contributions to this project. My scenario is as follows:

Image

The content of the response header is application/vnd.spring-boot.actuator.v3+json;charset=UTF-8. It contains charset=UTF-8, which prevents the following code from matching.

const supportedContentTypes = [
'application/vnd.spring-boot.actuator.v3+json',
'application/vnd.spring-boot.actuator.v2+json',
];
if (supportedContentTypes.includes(res.headers['content-type'])) {

@joshlong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions