Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.
This repository was archived by the owner on May 8, 2026. It is now read-only.

application/json repeated twice in Accept header #214

@tim-reply

Description

@tim-reply

Describe the bug
When querying http service, accept header is added twice:
"1 > Accept: application/json,application/json"

To Reproduce
Steps to reproduce the behavior:

  1. use FetchMessageService.fetch
  2. check in logs , it would have this:
1 > Accept: application/json,application/json

Expected behavior
should only send application/json once

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

Additional context
I think the issue is here:

var request = target.request(MediaType.APPLICATION_JSON_TYPE);
request.accept(MediaType.APPLICATION_JSON_TYPE);

Metadata

Metadata

Assignees

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