@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2022 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -59,12 +59,12 @@ [super dealloc]; } - (OFString *)description { - const char *method = OFHTTPRequestMethodName(_request.method); + OFString *method = OFHTTPRequestMethodString(_request.method); return [OFString stringWithFormat: - @"An HTTP %s request with URI %@ failed with code %hd!", method, - _request.URI, _response.statusCode]; + @"An HTTP %@ request with IRI %@ failed with code %hd!", method, + _request.IRI, _response.statusCode]; } @end