Page MenuHomeSoftware Heritage

api/server: fallback to application/json as best mimetype for content nego
ClosedPublic

Authored by douardda on Mar 18 2019, 10:53 AM.

Details

Summary

we almost never return text/plain or text/html, so json is a better default
value.

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Shouldn't msgpack be preferred over json?

Shouldn't msgpack be preferred over json?

Not if you want to read the data from the cli for example (without the hassle of adding extra flags ;)

This revision is now accepted and ready to land.Mar 18 2019, 12:35 PM
olasd added a subscriber: olasd.

Shouldn't msgpack be preferred over json?

Not if you want to read the data from the cli for example (without the hassle of adding extra flags ;)

Is there really anything/anyone trying to read data from the backend RPC servers on the CLI?

This revision was automatically updated to reflect the committed changes.