Skip to content

Wrong Accept header field value in DeliveryClient.buildNewRequest() #154

@Dakkaron

Description

@Dakkaron

Brief bug description

Requests are sent with header Accept set to applications/json instead of application/json.

Repro steps

  1. Send a request e.g. using DeliveryClient.getItem().
  2. Observe the headers of the sent request.
  3. It is applications/json.

Expected behavior

Accept header should be set to application/json.

Test environment

  • Platform/OS: Java, Windows
  • Browser: N/A
  • Version: Current master branch

Additional context

The problem derives from https://github.com/kontent-ai/java-packages/blob/master/delivery-sdk/src/main/java/kontent/ai/delivery/DeliveryClient.java, line 587.

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