https://bugs.winehq.org/show_bug.cgi?id=35533
--- Comment #3 from François Gouget fgouget@codeweavers.com --- I remember playing with the MIME type at the time to try and get the patch to simply open in the browser as a text file but with the differing behavior between browsers I could not obtain anything that made sense. Maybe someone else would have more luck.
Another option, the one preferred by Dmitry I believe, would be to display the patch inline in the page, something like click on the [+] and here's the patch. That would require escaping. Bonus points for color highlighting and avoiding a page reload. But there would still need to be a way to download the raw patch so one can apply it locally.