Closed eins78 closed 8 years ago
Well, I just figured out that the "overriding" I described above breaks my own use case, because there are other Content-Types than JSON involved. This needs some more thinking…
If you can come up with something let me know happy to help out if possible.
Add custom headers (not just CORS) when using canned programmatically.
Note that any given headers are overriding whatever canned figured out internally (e.g. ‘Content-Type), my use case for that is serving a custom “JSON dialect” without adding the config via comments to every single file.
Did a slight refactoring of the internal handling to make that easier.
Not added to CLI options because not sure about naming.