Closed debakarr closed 11 months ago
Some site like this: https://bmtcwebportal.amnex.com/commuter/dashboard does not have mime type set to JSON but they still have the content of API response as JSON.
Here I am additionally adding condition to validate in case the mime type is not JSON, we validate that the response body also is not JSON.
Thanks for raising this PR @debakarr, good catch. I'll include this in the next release 👍 .
Some site like this: https://bmtcwebportal.amnex.com/commuter/dashboard does not have mime type set to JSON but they still have the content of API response as JSON.
Here I am additionally adding condition to validate in case the mime type is not JSON, we validate that the response body also is not JSON.