Skip to content

Commit

Permalink
Merge pull request #477 from Rdataflow/fix-compress-turtle
Browse files Browse the repository at this point in the history
fix: compress `text/turtle`
  • Loading branch information
ludovicm67 authored Aug 23, 2024
2 parents d41b894 + b26b6e9 commit 7836e33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tidy-hornets-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trifid-core": patch
---

Add support for turtle compression
2 changes: 1 addition & 1 deletion packages/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const trifid = async (config, additionalPlugins = {}) => {
})

// Register fastifyCompress and add custom compressible mime-types (in addition to mime-db)
await server.register(fastifyCompress, { customTypes: /(n-triples|n-quads|trig|json)(;.+)?$/ })
await server.register(fastifyCompress, { customTypes: /(turtle|n-triples|n-quads|trig|json)(;.+)?$/ })

// Add support for `application/sparql-query` content type
server.addContentTypeParser('application/sparql-query', (_request, payload, done) => {
Expand Down

0 comments on commit 7836e33

Please sign in to comment.