[libsoup/carlosgc/set-method-public: 2/2] message: make http-version property read-only
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/set-method-public: 2/2] message: make http-version property read-only
- Date: Mon, 7 Jun 2021 17:11:50 +0000 (UTC)
commit ba6b5830c0d3cc56b6b008b6851840ecb3489d65
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon Jun 7 19:10:22 2021 +0200
message: make http-version property read-only
libsoup/soup-message.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/libsoup/soup-message.c b/libsoup/soup-message.c
index d3004825..0beae103 100644
--- a/libsoup/soup-message.c
+++ b/libsoup/soup-message.c
@@ -231,9 +231,6 @@ soup_message_set_property (GObject *object, guint prop_id,
case PROP_IS_TOP_LEVEL_NAVIGATION:
soup_message_set_is_top_level_navigation (msg, g_value_get_boolean (value));
break;
- case PROP_HTTP_VERSION:
- soup_message_set_http_version (msg, g_value_get_enum (value));
- break;
case PROP_FLAGS:
soup_message_set_flags (msg, g_value_get_flags (value));
break;
@@ -710,7 +707,7 @@ soup_message_class_init (SoupMessageClass *message_class)
"The HTTP protocol version to use",
SOUP_TYPE_HTTP_VERSION,
SOUP_HTTP_1_1,
- G_PARAM_READWRITE |
+ G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS);
properties[PROP_FLAGS] =
g_param_spec_flags ("flags",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]