When downloading a JSON file from a Domino server (from the filesystem's domino/html
directory, not from an .nsf
file), its headers are not appropriate. I'm getting
Content-Type: application/octet-stream
instead of
Content-Type: application/json
How can I set it to application/json
(or anything else)?
In the Domino/Data folder, you'll see a configuration file named httpd.cnf
. Add the following line at the end of that file, just before the fallback rule.
AddType .json application/json # JSON
(Of course, you need to restart HTTP task after that.)