[gnome-maps/wip/mlundblad/libsoup3: 2/7] http: Use GLib.uri_escape_string()




commit 8b299fc6abcea668fac12063b432d7989a52340b
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]