Skip to content

Commit

Permalink
Fix wrong Content-Type for binary
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Jun 25, 2021
1 parent fca7cf1 commit 8af1923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oada/services/http-handler/src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const plugin: FastifyPluginAsync<Options> = async function (fastify, opts) {
const oadaGraph = request.requestContext.get('oadaGraph')!;

const type = oadaGraph.type ?? 'application/json';
reply.type(type);
// TODO: Why does this not work as a fastify plugin??
const headers = handleResponse(type);
// TODO: Why does fastify strip content-type params??
Expand Down

0 comments on commit 8af1923

Please sign in to comment.