Duplicate Content-Type header rejected by server

For SDK version v1.5.4 (ref: Duplicate `Content-Type` header rejected by server · Issue #184 · conductor-sdk/conductor-go · GitHub)

I try to observe the HTTP dump sent when execute the workflow through the SDK using settings.NewHttpSettings(…)

c := client.NewAPIClient(
    settings.NewAuthenticationSettings(KEY_ID, SECRET),
    settings.NewHttpSettings(API_URL))

But seems that the SDK send duplicate header Content-Type: application/json. Is this expected?

HTTP Dump

POST /api/workflow HTTP/1.1
Host: localhost:8080
Accept: text/plain
Accept: application/json
Accept-Encoding: gzip
Content-Length: 254
Content-Type: application/json
Content-Type: application/json
User-Agent: Go-http-client/1.1
{"name":"schedule_comm","input":{"communication":{"messageId":"3f1c6e1e-1eef-481f-bd26-6aac07b3a670","userId":"32ad3823-8bc5-441c-9023-75ad0b9ab17c","text":"Hello, this is a scheduled message"},"scheduleAt":"2025-05-09 08:18 +0700"}}

Conductor server (not sure which version) reject it

{
    "status": 500,
    "message": "Invalid mime type \"application/json,application/json\": Invalid token character ',' in token \"json,application/json\"",
    "instance": "conductor-app-68689fb6f4-7cz25",
    "retryable": false
}

Using this seems solve the problem

c := client.NewAPIClient(
    settings.NewAuthenticationSettings(KEY_ID, SECRET),
    &settings.HttpSettings{
      BaseUrl: API_URL,
      Headers: map[string]string{
      // "Content-Type":    "application/json", // -> This is exists on settings.NewHttpSettings(..), removing it seems solve the issue
      "Accept":          "application/json",
      "Accept-Encoding": "gzip",
    },
})