[gnome-maps/wip/mlundblad/libsoup3: 6/11] http: Use GLib.uri_escape_string()
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/libsoup3: 6/11] http: Use GLib.uri_escape_string()
- Date: Sat, 20 Aug 2022 20:47:25 +0000 (UTC)
commit 77ee19352e94347d90714819362ed8dd6058ecdd
Author: Marcus Lundblad <ml dfupdate se>
Date: Wed Aug 17 21:46:33 2022 +0200
http: Use GLib.uri_escape_string()
Change from libsoup's URI escape functionallity
to using the one from GLib, as that API is removed
in libsoup3.
src/http.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/http.js b/src/http.js
index ee8e65dc..d3718855 100644
--- a/src/http.js
+++ b/src/http.js
@@ -19,13 +19,13 @@
* Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
*/
-import Soup from 'gi://Soup';
+import GLib from 'gi://GLib';
function encode(data) {
if(data === null)
return null;
- return Soup.URI.encode(data.toString(), '&');
+ return GLib.uri_escape_string(data.toString(), null, false);
}
export class Query {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]