<#882 Set `Content-Type` header for JSON in API en...
# hub-repo-activity
g
#882 Set `Content-Type` header for JSON in API endpoints Issue created by edgarrmondragon The API endpoints (e.g. `plugins/extractors/tap-csv--meltanolabs`) are built and exposed as static JSON files, though they lack the
.json
extension. I believe that was decided so endpoints wouldn't include the extension. The lack of a file extension means that the content type of the API endpoints defaults to `text/plain`: $ http https://hub.meltano.com/meltano/api/v1/plugins/extractors/tap-csv--meltanolabs --headers HTTP/1.1 200 OK Accept-Ranges: bytes Age: 0 Cache-Control: public, max-age=0, must-revalidate Content-Encoding: gzip Content-Type: text/plain; charset=UTF-8 Date: Fri, 07 Oct 2022 171037 GMT Etag: "f0acb5b14433bd62ef4bc20359c32058-ssl-df" Server: Netlify Strict-Transport-Security: max-age=31536000 Transfer-Encoding: chunked Vary: Accept-Encoding X-Nf-Request-Id: 01GESPTWHRSE3WVYF9AJN28E7C I'm not sure how difficult it is to set the headers, and it's not a big deal but future clients might work better if it was correctly set. meltano/hub