Add the format: :plain option to HTTParty calls to disregard incoming content-type to ensure response isn't parsed.
Motivation and context
An endpoint with a JSON Content-Type header, but containing HTML caused a 500 error.
Screenshots
(Paste or upload any relevant screenshots)
Checklist
[x] I have read and followed the CONTRIBUTING guide.
[x] I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree
to license it to the TeSS codebase under the
BSD license.
Summary of changes
format: :plain
option to HTTParty calls to disregard incoming content-type to ensure response isn't parsed.Motivation and context
An endpoint with a JSON
Content-Type
header, but containing HTML caused a 500 error.Screenshots
(Paste or upload any relevant screenshots)
Checklist