pistol not print JSON data
RonanMacF opened this issue · comments
Ronan Mac Fhlannchadha commented
What is the thinking behind not print JSON data and instead displaying a message stating that it is JSON data?
Doron Behar commented
That's a good question :) The issue is the mime type of a JSON file is application/json
and not text/json
or anything that would match text/*
. See this table:
pistol/internal_writers/map.go
Lines 8 to 20 in d827ec3
Feel free @RonanMacF to try and a line there for application/json
and use the NewChromaWriter
as the key in that map.
Doron Behar commented