-
Notifications
You must be signed in to change notification settings - Fork 39
HTTP Client is using an invalid JSON MIME type #62
Comments
Well, I just tried patching this, which turned out to be really easy. However, it turns out Nevertheless the MIME type is invalid and should most likely be corrected to avoid future incompatibilities. |
I believe the "text/json" was for ripe-rpki-validator 2 but I may be wrong. I can make it available as a CLI argument. Which version of GoRTR are you using? Could you share the JSON file as well? |
Perhaps standardising this format (and the headers) would be good. In my eyes a RPKI validation server should not be intolerant of |
Made a change to |
Currently HTTP Requests to a RPKI validation server are made with the header option "Accept: text/json".
This is causing issues with APIs of some RPKI servers that are particularly picky about this. For example the
/api/objects/validated
endpoint of RIPE NCC's rpki-validator-3 does not like "text/json"."text/json" is not a valid MIME type after all and should be changed to "application/json", possibly avoiding issues with future implementations of RPKI validation servers. (rfc8259)
The text was updated successfully, but these errors were encountered: