Bug Description:
The current implementation of TSP Client (REST Client) does not accept server replies using Content-Type: application/json; charset=utf-8 as per RFC9110 8.3.2 Charset.
The problem is the strict-equal in
|
if (response.headers?.get('Content-Type') === 'application/json') { |
Steps to Reproduce:
- Connect to a TSP Server that replies with
Content-Type: application/json; charset=utf-8
- See reply to initial
GET /tsp/api/health to be dismissed due to Content-Type
- No further requests are being issued
Additional Information
- Operating System: MacOS 26
Bug Description:
The current implementation of TSP Client (REST Client) does not accept server replies using
Content-Type: application/json; charset=utf-8as per RFC9110 8.3.2 Charset.The problem is the strict-equal in
tsp-typescript-client/tsp-typescript-client/src/protocol/rest-client.ts
Line 125 in 75cc633
Steps to Reproduce:
Content-Type: application/json; charset=utf-8GET /tsp/api/healthto be dismissed due to Content-TypeAdditional Information