diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-10-19 13:26:15 +0200 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-10-19 14:24:49 +0200 |
commit | d32453cd746839a4acaa00b7ac9eeffe45813d99 (patch) | |
tree | 750886053a624ae34038c33ca333f01dfe6c6556 /libsoup/soup-message-io.c | |
parent | 2ff57ab860c8730d025d3e5d257d3faaf874e3b6 (diff) | |
download | libsoup-carlosgc/simple-api.tar.gz |
Remove SoupRequest APIcarlosgc/simple-api
Diffstat (limited to 'libsoup/soup-message-io.c')
-rw-r--r-- | libsoup/soup-message-io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c index feb88672..9387aafd 100644 --- a/libsoup/soup-message-io.c +++ b/libsoup/soup-message-io.c @@ -483,8 +483,8 @@ parse_headers (SoupMessage *msg, &version, &msg->status_code, &msg->reason_phrase)) { - g_set_error_literal (error, SOUP_REQUEST_ERROR, - SOUP_REQUEST_ERROR_PARSING, + g_set_error_literal (error, SOUP_SESSION_ERROR, + SOUP_SESSION_ERROR_PARSING, _("Could not parse HTTP response")); return SOUP_STATUS_MALFORMED; } @@ -506,8 +506,8 @@ parse_headers (SoupMessage *msg, *encoding = soup_message_headers_get_encoding (msg->response_headers); if (*encoding == SOUP_ENCODING_UNRECOGNIZED) { - g_set_error_literal (error, SOUP_REQUEST_ERROR, - SOUP_REQUEST_ERROR_ENCODING, + g_set_error_literal (error, SOUP_SESSION_ERROR, + SOUP_SESSION_ERROR_ENCODING, _("Unrecognized HTTP response encoding")); return SOUP_STATUS_MALFORMED; } |