Skip to content

How to clear fragment of RequestTemplate (Feign client 11.10)? #3095

@wwc7654321

Description

@wwc7654321

When I do
template.target(newTarget);
template.uri(newUri ); in my custom RequestInterceptor ,
I noticed that the origin fragment was kept in final URL (something like https://newTarget/newPath?newQuery=newVal#oldFragment , the oldFragment is not part of newUri).

The best thing I can do is template.uri(newUri +"#"); and I will get https://newTarget/newPath?newQuery=newVal# .
How to fully clear fragment, so I can get https://newTarget/newPath?newQuery=newVal ?

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