Hi, I am wondering if it's possible to set the content-type header for artifacts in Go? For example, I have a job that generates an XML artifact, that has an XSL stylesheet. however, when we access the file via the "artifacts" tab, the XML artifact is served with a "text/plain" content-type header, resulting in plain XML being rendered in the browser. If served with text/xml, then it the browser would render it using the XSL.
Any ideas as to why this is happening? Here's an example of my request:
http://go:8153/go/files/MyBuildPipeline/35/Metrics/5/scalastyle/scalatest/play/scalastyle-result.xml
Response Headers:
Content-Language | en-US |
Content-Length | 26537 |
Content-Type | text/plain; charset=iso-8859-1 |
Server | Jetty() |
Comments
1 comment
Hi Brett,
Unfortunately, at present this is a limitation within Go. I have logged an enhancement for it on github -> https://github.com/GoCD/GoCD/issues/18
Thanks for letting us know.
Regards
Arika
Please sign in to leave a comment.