mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-28 09:38:20 -05:00
Add flatpak version to user agent
This uses the new ostree feature at: https://github.com/ostreedev/ostree/pull/1496 Note, this will only work with the current ostree master, and does nothing on older versions. Closes: #1533 Approved by: mwleeds
This commit is contained in:
committed by
Atomic Bot
parent
3273e9923c
commit
2bf1bb3472
@@ -2397,6 +2397,8 @@ get_common_pull_options (GVariantBuilder *builder,
|
||||
g_variant_builder_add (&hdr_builder, "(ss)", "Flatpak-Ref", ref_to_fetch);
|
||||
g_variant_builder_add (builder, "{s@v}", "http-headers",
|
||||
g_variant_new_variant (g_variant_builder_end (&hdr_builder)));
|
||||
g_variant_builder_add (builder, "{s@v}", "append-user-agent",
|
||||
g_variant_new_variant (g_variant_new_string ("flatpak/" PACKAGE_VERSION)));
|
||||
|
||||
if (progress != NULL)
|
||||
update_freq = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (progress), "update-frequency"));
|
||||
|
||||
Reference in New Issue
Block a user