Handling of attached .log or .txt files

Since a few weeks, the behavior of our site has changed: Previously, post attachments with a .log or .txt extension would be downloaded or handled as defined in the browser.

Now it has changed to opening the files in the same tab as Discourse. Is there any way to restore the previous behavior?