I've fixed this, but it's kind of hard to test as we're not able to download the actual file bodies from the app server during the tests. (Unless we make nginx and a fixed hostname a requirement for running certain parts of the tests)