[gnome-maps/wip/mlundblad/http-useragent: 3/4] wikipedia: 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: 3/4] wikipedia: Set User-Agent on HTTP session
- Date: Mon, 14 Oct 2019 20:23:46 +0000 (UTC)
commit 35d5cc87be982bbffc4cdb272a60c7cb39c73850
Author: Marcus Lundblad <ml update uu se>
Date: Mon Oct 14 22:22:02 2019 +0200
wikipedia: Set User-Agent on HTTP session
src/wikipedia.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wikipedia.js b/src/wikipedia.js
index 52c567d1..f954d8c2 100644
--- a/src/wikipedia.js
+++ b/src/wikipedia.js
@@ -30,7 +30,7 @@ const Utils = imports.utils;
let _soupSession = null;
function _getSoupSession() {
if (_soupSession === null) {
- _soupSession = new Soup.Session ();
+ _soupSession = new Soup.Session({ user_agent : 'gnome-maps/' + pkg.version });
}
return _soupSession;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]