Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 7546a44

Browse files
Merge pull request #801 from github-for-unity/fixes/add-missing-header
Add header to the request if we have the token
2 parents 0aa40cb + 50a3d7c commit 7546a44

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

octorun/src/bin/app-usage.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var commander = require("commander");
22
var package = require('../../package.json')
3+
var config = require("../configuration");
34
var endOfLine = require('os').EOL;
45
var fs = require('fs');
56
var util = require('util');
@@ -45,6 +46,9 @@ if (fileContents && host) {
4546
'Content-Type': 'application/json'
4647
}
4748
};
49+
if (config.token) {
50+
options.headers['Authorization'] = 'token ' + config.token;
51+
}
4852

4953
var req = https.request(options, function (res) {
5054
var success = res.statusCode == 200;

octorun/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9fcd9faa
1+
b4b80eb4ac

src/GitHub.Api/Installer/OctorunInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class OctorunInstallDetails
8585
public const string DefaultZipMd5Url = "http://github-vs.s3.amazonaws.com/unity/octorun/octorun.zip.md5";
8686
public const string DefaultZipUrl = "http://github-vs.s3.amazonaws.com/unity/octorun/octorun.zip";
8787

88-
public const string PackageVersion = "9fcd9faa";
88+
public const string PackageVersion = "b4b80eb4ac";
8989
private const string PackageName = "octorun";
9090
private const string zipFile = "octorun.zip";
9191

src/GitHub.Api/Resources/octorun.zip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:ac6b09ebe88bb66f5aefdd262bd9cbf9819fd6a0b7f996acfa746dc33f4dbe74
3-
size 219653
2+
oid sha256:802c9a15337ce6692f8c4c215a131b755358972cb3a7e76139193855770ab1c8
3+
size 214371
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e562a8ccf9ef1e1d00a2e9a72f8234cf
1+
0a49f36d2e8df01456f832c6968a6782

0 commit comments

Comments
 (0)