summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lib: Add names to various GSourceslibsoup-2-74Philip Withnall2023-04-134-0/+51
| | | | | | | | | | | | This helps in identifying what’s attached to a `GMainContext` when debugging runtime problems with libsoup. The names added in `soup-misc.c` are fairly rough; if they turn out to not be specific enough, those methods could be changed to accept a `const gchar *name` argument so the caller can provide a more specific name. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* lib: Add g_task_set_source_tag() everywherePhilip Withnall2023-04-1311-0/+16
| | | | | | | This makes it easier to identify what a `GTask` instance is when debugging a running process. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* Add Abkhazian translationNart Tlisha2023-01-062-0/+199
|
* 2.74.32.74.3Patrick Griffis2022-10-112-1/+11
|
* meson: Fix libxml2 fallbackXavier Claessens2022-10-111-1/+2
| | | | | | The variable has been renamed to libxml2_dep in recent versions of libxml2 from WrapDB, which causes an error because xml2lib_dep does not exist any more. The variable name is not needed any way.
* meson: Add explicit check argument to run_command()Nirbheek Chauhan2022-03-261-7/+7
| | | | Not specifying this is deprecated, since it is prone to errors.
* meson: Override deps for use by the provide wrap sectionNirbheek Chauhan2022-03-251-0/+12
| | | | See: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
* Also fix missing extern on 2-27 branchMelroy van den Berg2022-02-271-1/+1
|
* Add two missing (out) g-i annotationsRico Tzschichholz2022-02-032-2/+2
|
* test-utils: Save Apache server root during initializationSimon McVittie2021-12-271-3/+10
| | | | | | | | | | | | | By the time we want to use it during teardown, it is no longer safe to call g_test_build_filename(), because some GTest state is discarded at the end of g_test_run() (see glib#2563). As a result, the command that should shut down the server fails, the server continues to run, and its port is unavailable for the next test-case. This should mostly resolve <https://gitlab.gnome.org/GNOME/libsoup/-/issues/175>. Signed-off-by: Simon McVittie <smcv@debian.org>
* test-utils: Log Apache argumentsSimon McVittie2021-12-271-0/+15
| | | | | | This helped to diagnose a use-after-free bug in the unit tests. Signed-off-by: Simon McVittie <smcv@debian.org>
* tests: add soup_test_build_filename_abs()Carlos Garcia Campos2021-12-273-11/+45
| | | | | | And use it when an absolute patch is required. (cherry picked from commit 235160bc0cfb75c98bb3cfde53e166dcb001aa58)
* 2.74.22.74.2Patrick Griffis2021-11-242-2/+6
|
* tests: Fix brotli test comparing non-NUL-terminated data as a stringPatrick Griffis2021-11-241-0/+3
|
* Error when libsoup3 is detected as already loaded in the same processPatrick Griffis2021-11-172-1/+22
| | | | | | Companion to 9596a869414bb0811f1e1f6009c950ca7af81189 See !211
* 2.74.12.74.1Patrick Griffis2021-10-242-1/+15
|
* Add missing BEGIN/END DECLS to soup-proxy-resolver-default.hPatrick Griffis2021-10-111-0/+4
| | | | Closes #242
* meson: Use an gssapi as a proper dependencyNirbheek Chauhan2021-10-092-6/+9
| | | | | There is no need to add it to the project arguments; we should treat it as any other dependency. There's nothing special about it.
* Update Russian translationAlexey Rubtsov2021-09-221-56/+87
|
* build: Fix generating docsPatrick Griffis2021-09-171-1/+1
|
* Updated Danish translationAlan Mortensen2021-09-131-14/+29
|
* vala: Better fix for #234 supporting older valaRico Tzschichholz2021-09-022-4/+2
| | | | Closes #237
* meson: skip the fallback for sysprof on Windowscherry-pick-01e361fcChristoph Reiter2021-08-241-1/+3
| | | | | | | | | | Otherwise it will download the subproject and fail when trying to build it since sysprof is Linux only. Instead skip the fallback on Windows, so that if force-enabled it will fail, but in auto mode it will just skip sysprof. (cherry picked from commit 01e361fcb9a4775e98ce13bc7f0c56ac405e9d3a)
* docs: Refer to 2.74.0 for ssl changesPatrick Griffis2021-08-221-2/+2
| | | | In the end 2.72.1 wasn't released.
* 2.74.02.74.0Patrick Griffis2021-08-222-2/+23
|
* Improve support for rfc 7230gnome-3-38Ignacio Casal Quinteiro2021-08-082-1/+72
| | | | | A server MUST NOT send a Content-Length header field in any response with a status code of 1xx (Informational) or 204 (No Content)
* Fix building vapi generation with latest valaPatrick Griffis2021-08-071-0/+4
| | | | Closes #234
* Fix bad rebase in 4bbc39f30a48e38d7c60a375a88d2a2e6a41a0b8Patrick Griffis2021-07-241-1/+1
|
* headers: Fix parsing of Content-TypePatrick Griffis2021-07-241-1/+2
| | | | | | | With d9f97292 the intention was only to change the behavior of soup_message_headers_get_content_disposition() however parse_content_foo() is also used for Content-Type. Fixes #232
* Meson: Fix fallback to sqlite3 subprojectXavier Claessens2021-07-201-1/+2
| | | | Meson's wrapdb had both sqlite and sqlite3 but the former is outdated.
* headers: Support invalid content-disposition without disposition-typePatrick Griffis2021-07-152-16/+60
|
* Remove TLS section of SoupSession porting docsMichael Catanzaro2021-06-241-26/+0
| | | | | SoupSessionAsync and SoupSessionSync are growing the new behavior, so there is no longer any difference to document here.
* Enable ssl-use-system-ca-file on deprecated Sync and Async sessionsPatrick Griffis2021-06-243-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default was disabled for backwards compatability however it was an unsafe default and many projects unknowingly did not enable it. This is a break in behavior however the security concerns are important. The belief that all projects would switch to the safer SoupSession didn't happen and the number of under-maintained projects is too many to fix quickly. This brings a base level of security to all of them and will likely not actually break much as the modern internet depends on CAs heavily. For users who are broken by it, the possible fixes are: - Add the CA for the service you can no longer connect to to the system CA database on your computer - Get the administrator of the service you were connecting to to switch to using a certificate signed by a public CA - Use http rather than https - Wait for, or request, the app to be updated For system administrators who provide a service whose users have been broken by this, the possible fixes are: - Update your service to use a certificate signed by a public CA - Get each user to add the CA to their system CA db, as above - Get each user to move to an alternative app For developers of apps whose users have been broken by this, the possible fixes are: - Document how users can add CAs to the system CA DB, as above - Add a config option to allow users to turn ssl-use-system-ca-file off again. (Note that this will probably eventually result in someone filing a CVE against your app.) - Add a config option to allow users to configure a file containing a CA to be trusted, and then read that in as a GTlsDatabaseFile and set it as SoupSession:tls-database - Add a ton of code to allow users to accept certificates signed by unknown CAs and then remember the certificates for next time. (We have no easily-copied examples of how to do this.)
* Update Occitan translationQuentin PAGÈS2021-05-131-63/+92
|
* Update Persian translationDanial Behzadi2021-05-061-15/+27
|
* Update Nepali translationPawan Chitrakar2021-05-041-57/+86
|
* Remove extern "C" wrapping other includesPatrick Griffis2021-04-271-8/+0
| | | | | This isn't the proper way to use extern C as the included headers may actually have C++ aware code in them.
* Update Dutch translationNathan Follens2021-04-011-17/+32
|
* Fix leaks found by Coverity ScanMilan Crha2021-03-172-0/+2
| | | | Closes #217
* soup-uri: Don't attempt to resolve relative paths in data URLsRyan Gonzalez2021-03-082-1/+9
| | | | | | | RFC2397 states that data URLs have "no relative URL forms", but soup_uri_new_with_base would still attempt to resolve any suspected relative URL paths regardless. This was also inconsistent with the behavior of most web browsers.
* tests/connection-test: Update expected events for GLib 2.67Iain Lane2021-03-041-1/+10
| | | | | | | | | | See GLib commit f0a7b147806e852e2090eeda6e4e38f7d3f52b52 for full details, but now the extra RESOLVING event is not emitted any more. To cater for situations where libsoup is run against an older version of GLib, keep a runtime check for older versions. Fixes: #215
* Update Belarusian translationŹmicier Turok2020-12-281-69/+97
|
* Update Greek translationEfstathios Iosifidis2020-09-301-39/+62
|
* Update British English translationStephan Woidowski2020-09-231-26/+28
|
* Update Chinese (Taiwan) translationCheng-Chia Tseng2020-09-221-16/+27
|
* tests: fix SSL test with glib-networking >= 2.65.90Carlos Garcia Campos2020-09-161-9/+3
| | | | | | | | | | | | To make SSL tests fail with our testing certificate we create and empty GTlsDatabase passing /dev/null to g_tls_file_database_new(). This no longer works with newer glib-networking, since an empty file is considered an error by gnutls and g_tls_file_database_gnutls_populate_trust_list() now handles gnutls errors properly. Instead, we can just use the system CA file that won't contain our testing certificate for sure. Fixes #201
* tests: ensure we use an absolute path for apache server root parameterCarlos Garcia Campos2020-09-161-0/+7
| | | | For some reason apache silently fails now if a relative path is passed.
* Update Portuguese translationJuliano de Souza Camargo2020-09-141-18/+22
|
* 2.72.02.72.0Patrick Griffis2020-09-132-2/+8
|
* Update Portuguese translationJuliano Camargo2020-09-131-67/+96
| | | | (cherry picked from commit e06d6f4e6f4060915d7627f442dfcb40703089b4)