[libsoup/wip/remove-deprecations: 40/49] soup-logger: Handled NULL response-phrase
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/remove-deprecations: 40/49] soup-logger: Handled NULL response-phrase
- Date: Tue, 30 Jun 2020 21:57:39 +0000 (UTC)
commit a37b95781a08ed033f99453805d04bd1ffc6197c
Author: Patrick Griffis <pgriffis igalia com>
Date: Wed Mar 18 22:02:44 2020 -0700
soup-logger: Handled NULL response-phrase
HTTP2 no longer has response phrases
libsoup/soup-logger.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libsoup/soup-logger.c b/libsoup/soup-logger.c
index 2ba6ce52..65c1925c 100644
--- a/libsoup/soup-logger.c
+++ b/libsoup/soup-logger.c
@@ -627,9 +627,9 @@ print_response (SoupLogger *logger, SoupMessage *msg)
return;
soup_logger_print (logger, SOUP_LOGGER_LOG_MINIMAL, '<',
- "HTTP/1.%d %u %s\n",
- soup_message_get_http_version (msg),
- msg->status_code, msg->reason_phrase);
+ "%s %u %s\n",
+ soup_http_version_to_string (soup_message_get_http_version (msg)),
+ msg->status_code, msg->reason_phrase ? msg->reason_phrase : "");
soup_logger_print (logger, SOUP_LOGGER_LOG_MINIMAL, '<',
"Soup-Debug-Timestamp: %lu",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]