Index: utils/ofhttp/OFHTTP.m ================================================================== --- utils/ofhttp/OFHTTP.m +++ utils/ofhttp/OFHTTP.m @@ -777,13 +777,16 @@ key, object]; objc_autoreleasePoolPop(pool); } else if (statusCode / 100 == 2 && !_detectFileNameRequest) { [of_stdout writeString: @" "]; - [of_stdout writeLine: OF_LOCALIZED(@"info_name", - @"Name: %[name]", - @"name", _currentFileName)]; + + if (_currentFileName != nil) + [of_stdout writeLine: OF_LOCALIZED(@"info_name", + @"Name: %[name]", + @"name", _currentFileName)]; + [of_stdout writeString: @" "]; [of_stdout writeLine: OF_LOCALIZED(@"info_type", @"Type: %[type]", @"type", type)]; [of_stdout writeString: @" "];