Specifying the Content-Type of the result of an execution plugin
I’ve been writing a plugin similar to the example “stats” plugin, to return info on repo sizes. I’d like to produce different content types, e.g., XHTML and CSV. I can read an execution param to tell me what content type to produce, but
how can I influence the Content-Type header in the response from the server? Does Artifactory infer it from looking at the content, or …? It seems to just be giving “text/plain” just now, even though I’m writing XHTML. (Maybe I need to add the <?xml …>
decl and a doctype?)
Not a big deal, just would be nice :-)
Thanks for any hints,
Senior Software Developer Toshiba Medical Visualization Systems Europe, Ltd Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799 http://www.tmvse.com /
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company
does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com