[gnome-maps/wip/mlundblad/http-useragent: 2/4] overpass: Set User-Agent on HTTP session
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/http-useragent: 2/4] overpass: Set User-Agent on HTTP session
- Date: Mon, 14 Oct 2019 20:23:41 +0000 (UTC)
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]