diff options
author | Felipe Borges <felipeborges@gnome.org> | 2021-10-04 15:39:19 +0200 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2021-10-06 13:00:56 +0200 |
commit | 97504bf77ddd85e1c59816e2c004d87d82501f21 (patch) | |
tree | b02b3f5a0fb5132842f1badd8b8c241a2067cdf6 | |
parent | 8b0c524174cdc19bfc3cca0561faff9424387b65 (diff) | |
download | libosinfo-97504bf77ddd85e1c59816e2c004d87d82501f21.tar.gz |
tree, media: SOUP_SESSION_USER_AGENT isn't defined in libosup3
Let's use the literal "user-agent" instead.
Signed-off-by: Felipe Borges <felipeborges@gnome.org>
-rw-r--r-- | osinfo/osinfo_media.c | 2 | ||||
-rw-r--r-- | osinfo/osinfo_tree.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c index 1cd63f8..b2019f4 100644 --- a/osinfo/osinfo_media.c +++ b/osinfo/osinfo_media.c @@ -1387,7 +1387,7 @@ void osinfo_media_create_from_location_with_flags_async(const gchar *location, if (osinfo_util_requires_soup(location)) { data->session = soup_session_new_with_options( - SOUP_SESSION_USER_AGENT, "Wget/1.0", + "user-agent", "Wget/1.0", NULL); data->message = soup_message_new("GET", location); diff --git a/osinfo/osinfo_tree.c b/osinfo/osinfo_tree.c index bf35d11..e19d73f 100644 --- a/osinfo/osinfo_tree.c +++ b/osinfo/osinfo_tree.c @@ -823,7 +823,7 @@ osinfo_tree_create_from_location_async_helper(CreateFromLocationAsyncData *data, if (requires_soup) { if (data->session == NULL) data->session = soup_session_new_with_options( - SOUP_SESSION_USER_AGENT, "Wget/1.0", + "user-agent", "Wget/1.0", NULL); g_clear_object(&data->message); |