[gnome-maps/wip/mlundblad/http-useragent: 4/4] openTripPlanner: 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: 4/4] openTripPlanner: Set User-Agent on HTTP session
- Date: Mon, 14 Oct 2019 20:23:51 +0000 (UTC)
commit 03f0361bfcfa64ba6e2cdfb67117492f004444c9
Author: Marcus Lundblad <ml update uu se>
Date: Mon Oct 14 22:22:27 2019 +0200
openTripPlanner: Set User-Agent on HTTP session
src/transitplugins/openTripPlanner.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/transitplugins/openTripPlanner.js b/src/transitplugins/openTripPlanner.js
index d11b67f1..c70bdfd4 100644
--- a/src/transitplugins/openTripPlanner.js
+++ b/src/transitplugins/openTripPlanner.js
@@ -112,7 +112,7 @@ const GAP_BEFORE_MORE_RESULTS = 120;
var OpenTripPlanner = class OpenTripPlanner {
constructor(params) {
- this._session = new Soup.Session();
+ this._session = new Soup.Session({ user_agent : 'gnome-maps/' + pkg.version });
this._plan = Application.routingDelegator.transitRouter.plan;
this._query = Application.routeQuery;
this._baseUrl = params.baseUrl;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]