Skip to content

[BUG] The custom header in the request template was added to the request builder without replacing the value of the header #6254

@MaMengzhen

Description

@MaMengzhen

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The custom header in the request template was added to the request builder without replacing the value of the header.

Image Image

Expected Behavior

When adding custom headers from the request template to the request builder, the value of the header needs to be replaced.

Image

Steps To Reproduce

  1. Include "headers" array in requestTemplate with header value containing "{{.key}}".
  2. Ensure inputJson has a matching key with a string value.
  3. Placeholder "{{.key}}" is replaced using inputJson before adding header.

Environment

ShenYu version(s):2.7.1-SNAPSHOT

Debug logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions