Skip to content

Fix or mute "Warning: Missing Content-Type Header" warning #2571

@wabiloo

Description

@wabiloo

Description

I'm using scripting to modify the response payload of a remote endpoint.
I am continuously getting this type of error: "Warning: Missing Content-Type Header", even though the response body does contain a Content-Type header. The request does not, but I cannot control, and would prefer to avoid having to modify it just to add it, as it may affect the response I get from the remote endpoint.

Is there a way to configure scripting to mute that warning?

==========================
[16:07:53.852]: onResponse() is executed with Flow ID = 30553
REMOVED Event without duration
⚠️ Warning: Missing Content-Type Header. Consider adding this header to your request/response.
16:07:53.854 onResponse() is executed!
==========================
[16:07:53.982]: onResponse() is executed with Flow ID = 30555
REMOVED Event without duration
⚠️ Warning: Missing Content-Type Header. Consider adding this header to your request/response.
16:07:53.983 onResponse() is executed!
==========================
[16:07:55.627]: onResponse() is executed with Flow ID = 30556
REMOVED Event without duration
⚠️ Warning: Missing Content-Type Header. Consider adding this header to your request/response.
16:07:55.639 onResponse() is executed!
==========================
[16:07:56.567]: onResponse() is executed with Flow ID = 30557
REMOVED Event without duration
⚠️ Warning: Missing Content-Type Header. Consider adding this header to your request/response.
16:07:56.571 onResponse() is executed!
==========================
[16:07:57.638]: onResponse() is executed with Flow ID = 30561
REMOVED Event without duration
UNCHANGED BreakDuration duration: 7954244
UNCHANGED Event duration: 7954244
⚠️ Warning: Missing Content-Type Header. Consider adding this header to your request/response.
16:07:57.643 onResponse() is executed!
==========================
[16:07:58.053]: onResponse() is executed with Flow ID = 30563
REMOVED Event without duration
UNCHANGED BreakDuration duration: 7954244
UNCHANGED Event duration: 7954244
⚠️ Warning: Missing Content-Type Header. Consider adding this header to your request/response.
16:07:58.058 onResponse() is executed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions