Remove default `application/json` header from fastapi response
Remove default `application/json` header from fastapi response Question: I have taken this (https://fastapi.tiangolo.com/advanced/response-directly/#returning-a-custom-response) example from fastapi documentation regarding how to return a custom response from a fastapi application. This is my example code that i came up with to test it : from http.client import responses from fastapi import FastAPI, Response app = FastAPI() response_examples …