ObjFW  Check-in [1e07e91324]

Overview
Comment:ofhttp: Avoid passing nil to OF_LOCALIZED
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1e07e913241fa7b6bcdbffc7ffdebdf1b280b6f951ec18305024230455af2ff5
User & Date: js on 2020-12-15 19:16:22
Other Links: manifest | tags
Context
2020-12-18
10:41
Fix deprecation warnings with autoconf 2.70 check-in: 28eda87705 user: js tags: trunk
2020-12-15
19:16
ofhttp: Avoid passing nil to OF_LOCALIZED check-in: 1e07e91324 user: js tags: trunk
2020-12-12
22:36
Add platform define for Elbrus 2000 check-in: 3a9ef7d5cc user: js tags: trunk
Changes

Modified utils/ofhttp/OFHTTP.m from [0d0e8ff125] to [089353e353].

775
776
777
778
779
780
781


782
783
784

785
786
787
788
789
790
791
			    (object = [objectEnumerator nextObject]) != nil)
				[of_stdout writeFormat: @"  %@: %@\n",
							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)];

			[of_stdout writeString: @"  "];
			[of_stdout writeLine: OF_LOCALIZED(@"info_type",
			    @"Type: %[type]",
			    @"type", type)];
			[of_stdout writeString: @"  "];
			[of_stdout writeLine: OF_LOCALIZED(@"info_size",
			    @"Size: %[size]",







>
>
|
|
|
>







775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
			    (object = [objectEnumerator nextObject]) != nil)
				[of_stdout writeFormat: @"  %@: %@\n",
							key, object];

			objc_autoreleasePoolPop(pool);
		} else if (statusCode / 100 == 2 && !_detectFileNameRequest) {
			[of_stdout writeString: @"  "];

			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: @"  "];
			[of_stdout writeLine: OF_LOCALIZED(@"info_size",
			    @"Size: %[size]",