Differences From Artifact [651e588aea]:
- File
src/OFHTTPResponse.m
— part of check-in
[9c506fc995]
at
2020-03-22 15:51:59
on branch trunk
— ofhttp: Print the HTTP status code on error
Without this, there would be no indication of the error when using -q. (user: js, size: 8119) [annotate] [blame] [check-ins using]
To Artifact [1abecd6ce8]:
- File src/OFHTTPResponse.m — part of check-in [3356b9940c] at 2020-04-19 10:02:51 on branch trunk — Clean up which exception is used when a little (user: js, size: 8119) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
19 20 21 22 23 24 25 | #import "OFHTTPResponse.h" #import "OFString.h" #import "OFDictionary.h" #import "OFArray.h" #import "OFData.h" | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #import "OFHTTPResponse.h" #import "OFString.h" #import "OFDictionary.h" #import "OFArray.h" #import "OFData.h" #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFOutOfRangeException.h" #import "OFTruncatedDataException.h" #import "OFUnsupportedVersionException.h" OFString * of_http_status_code_to_string(short code) |
︙ | ︙ | |||
214 215 216 217 218 219 220 | if ([name isEqual: @"charset"]) charset = value; } @try { ret = of_string_parse_encoding(charset); | | | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | if ([name isEqual: @"charset"]) charset = value; } @try { ret = of_string_parse_encoding(charset); } @catch (OFInvalidArgumentException *e) { ret = OF_STRING_ENCODING_AUTODETECT; } return ret; } @implementation OFHTTPResponse |
︙ | ︙ |