ObjFW  Check-in [8377e80ba9]

Overview
Comment:ofhttp: Fix file name not always being reset
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8377e80ba9b45a2d2b62d608b40ebfd2c1ca930eb41913408140d9c21c7092d3
User & Date: js on 2018-01-03 23:00:34
Other Links: manifest | tags
Context
2018-01-07
04:09
OFHTTPClient: Make sure _firstLine is always reset check-in: 0fde3368f6 user: js tags: trunk
2018-01-03
23:00
ofhttp: Fix file name not always being reset check-in: 8377e80ba9 user: js tags: trunk
22:30
ofhash: Allow user database reading check-in: 29ed8e6081 user: js tags: trunk
Changes

Modified utils/ofhttp/OFHTTP.m from [8c1ff01854] to [5bb85c3a07].

917
918
919
920
921
922
923


924
925
926
927
928
929

930
931
932
933
934
935
936
937
938
939
917
918
919
920
921
922
923
924
925
926
927
928
929
930

931

932

933
934
935
936
937
938
939







+
+





-
+
-

-







		[request setMethod: OF_HTTP_REQUEST_METHOD_HEAD];

		[_HTTPClient asyncPerformRequest: request
					 context: @"detectFileName"];
		return;
	}

	[_currentFileName release];
	_currentFileName = nil;
	_detectedFileName = false;

	if (!_quiet)
		[of_stdout writeFormat: @"⇣ %@", [URL string]];

	if (_outputPath != nil) {
	if (_outputPath != nil)
		[_currentFileName release];
		_currentFileName = [_outputPath copy];
	}

	if (_currentFileName == nil)
		_currentFileName = [[[URL path] lastPathComponent] copy];

	if (_continue) {
		@try {
			uintmax_t size = [[[OFFileManager defaultManager]