Content type returned difference between GUI apps

So I was wondering how phoenix determines what type of content it uses to respond to calls.

I have a clean install with no single route in dev mode. When I go to the root (ie localhost:4000) I get an HTML page (no route found for GET / (Omniex.Router)) as expected. When I use Paw (an Api client tool for MacOS.) it responds with “text/markdown” instead? Using Postman (another API client build on Electron - so basically a browser) it returns me html again.

Setting the Content-Type header does not seem to work for me? So is there a way to force the type of response (in dev mode).

In such cases, the media-typed that phoenix uses for the answer, does depend on the accept-header of the request. This header does also influence the pipeline used by phoenix.

1 Like