[gnome-maps/wip/mlundblad/http-useragent: 2/4] overpass: Set User-Agent on HTTP session



commit 5c5f7d8df986aa7c2455962622409dce2606becd
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Oct 14 22:21:33 2019 +0200

    overpass: Set User-Agent on HTTP session

 src/overpass.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/overpass.js b/src/overpass.js
index 25dd31e1..37781a88 100644
--- a/src/overpass.js
+++ b/src/overpass.js
@@ -70,7 +70,7 @@ var Overpass = GObject.registerClass({
         this.outputSortOrder = params.outputSortOrder || _DEFAULT_OUTPUT_SORT_ORDER;
 
         // HTTP Session Variables
-        this._session = new Soup.Session();
+        this._session = new Soup.Session({ user_agent : 'gnome-maps/' + pkg.version });
     }
 
     addInfo(place) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]