Search code examples
buildbot

Can Buildbot WebStatus be customized to return content type other than text/html


As a final step in my builds I have FileUpload step to upload results to the master and I'm using BuildBot WebStatus component to serve build results (.apk files in this case). Unfortunately WebStatus always return text/html content type for all files. Is it possible to configure WebStatus so, that it would reconize file extension and return content type based on that information.


Solution

  • buildbot uses twisted.web.static.File to serve content from the public_html directory. Looking at the source, this uses /etc/mime.types by default, to get mime type information. There is no direct way to override this.