summaryrefslogtreecommitdiff
path: root/common/flatpak-uri.c
Commit message (Collapse)AuthorAgeFilesLines
* uri: Don't rely on g_time_zone_new_offset()Simon McVittie2022-09-071-1/+36
| | | | | | | | | g_time_zone_new_offset() was new in GLib 2.58, but Ubuntu 18.04 'bionic' only has GLib 2.56, and in theory we still claim to support versions all the way back to GLib 2.46. If that function isn't available, reimplement it in terms of the deprecated g_time_zone_new(). Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add a vim modeline and .editorconfigPhaedrus Leeds2022-08-221-1/+1
| | | | | | | | | To make indentation work with less effort. The modeline was copied from libostree with minor modification and the .editorconfig from GLib. The advantage of having both a modeline and an editorconfig is we can work out of the box on more editor setups, and the modeline allows us to specify the style with a lot more fine grained control.
* uri utils: Add some helpers for HTTP timestampsAlexander Larsson2022-06-161-0/+224
|
* flatpak-uri: Add some uri query and http header utilsAlexander Larsson2022-06-161-0/+167
| | | | | | | | | | This copies and simplifies some helpers from soup: * Encoding url queries * Parsing simple http header parameter lists The goal is to use mostly GUri and a few extra helpers for the flatpak internals, and then pass raw string uris to the http functions which could then be backed by any kind of http implementation.
* Use GUri (possibly with backport) instead of SoupURIAlexander Larsson2022-06-161-0/+1337
As discussed in https://github.com/flatpak/flatpak/pull/4582 we want ot use GUri for soup3, and if we want to use libcurl we might as well also use it to avoid complex ifdefs, as we're linking to it already via glib. This imports a subset of GUri for older versions of glib.