ApiClient only allows one Via header

Hello,
We use the .Net API behind a proxy server. This proxy server inserts an additional Via header into the response. This means that the API client can no longer process the response (An item with the same key has already been added Key: Via) I have looked at the whole thing in the API client. There are several places where the response.Headers? is converted into a dictionary. This place would have to be adapted as follows:

Configuration.Logger.Trace(method.ToString(), url, postBody, (int)response.StatusCode, headerParams,
response.Headers?
.GroupBy(header => header.GetType().GetProperty("Name")?.GetValue(header)?.ToString())
.ToDictionary(
group => group.Key,
group => string.Join(",", group.Select(header => header.GetType().GetProperty("Value")?.GetValue(header)?.ToString()))
)
?? new Dictionary<string, string>());

e.g. in line 265 in APIClient.cs
I would be happy about an adjustment.
Regards,
Sven

Hello,

We are currently working on this. A fix should be available in a week or so.
I'll update this post once the fix is released.

Regards,

This is a known bug that was recently brought up here.

Hello,

The fix should be in version 214.0.0 which has been released yesterday.

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.