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
Branch
master
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 4683
Build 6228: tox-on-jenkinsJenkins
Build 6227: arc lint + arc unit

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.