ofhttp: Fix file name not always being reset