Skip to content

Commit

Permalink
Merge pull request #71 from ekonstantinidis/set-user-agent
Browse files Browse the repository at this point in the history
Set User-Agent
  • Loading branch information
ekonstantinidis committed Dec 21, 2015
2 parents 030e326 + 36d5dce commit 6eca977
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion config.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.iamemmanouil.trevor" version="1.7.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.iamemmanouil.trevor" version="1.8.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Trevor</name>
<description>Continuous Integration on the go</description>
<author email="manos@iamemmanouil.com" href="http://www.iamemmanouil.com/">Emmanouil Konstantinidis</author>
Expand All @@ -12,6 +12,9 @@
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>

<!-- Override User Agent -->
<preference name="OverrideUserAgent" value="Trevor/1.8.0" />

<!-- Splash Screens -->
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "Trevor",
"version": "1.7.6",
"version": "1.8.0",
"description": "Continuous Integration on the go",
"main": "www/src/app.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion www/js/services/request.js
Expand Up @@ -23,7 +23,6 @@ services.factory('RequestService', function (AccountsService, AlertService, $q,

var headers = {
'Accept': 'application/vnd.travis-ci.2+json',
'User-Agent': 'Trevor/1.7.6',
'Host': host,
// 'Content-Type': 'application/json',
// 'Content-Length': 37
Expand Down

0 comments on commit 6eca977

Please sign in to comment.