Overview
Comment: | Reduce code duplication |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
44ea4f932205c339681f7835a564068c |
User & Date: | js on 2017-01-11 04:33:13 |
Other Links: | manifest | tags |
Context
2017-01-11
| ||
04:44 | Accept cp* and cp-* as encoding name check-in: bbe91438b1 user: js tags: trunk | |
04:33 | Reduce code duplication check-in: 44ea4f9322 user: js tags: trunk | |
04:22 | Add Windows-1251 encoding check-in: 0f88ccfb04 user: js tags: trunk | |
Changes
Modified src/OFString.m from [c458b1a41f] to [3935514fea].
︙ | ︙ | |||
933 934 935 936 937 938 939 | } else # endif # ifdef OF_HAVE_SOCKETS if ([scheme isEqual: @"http"] || [scheme isEqual: @"https"]) { OFHTTPClient *client = [OFHTTPClient client]; OFHTTPRequest *request = [OFHTTPRequest requestWithURL: URL]; OFHTTPResponse *response = [client performRequest: request]; | < < < < | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 | } else # endif # ifdef OF_HAVE_SOCKETS if ([scheme isEqual: @"http"] || [scheme isEqual: @"https"]) { OFHTTPClient *client = [OFHTTPClient client]; OFHTTPRequest *request = [OFHTTPRequest requestWithURL: URL]; OFHTTPResponse *response = [client performRequest: request]; if ([response statusCode] != 200) @throw [OFHTTPRequestFailedException exceptionWithRequest: request response: response]; self = [[response string] retain]; } else # endif @throw [OFUnsupportedProtocolException exception]; objc_autoreleasePoolPop(pool); return self; |
︙ | ︙ |