Fix IllegalStateException in http file example