Hacky fix for downloads with nginx