Skip to content

Commit

Permalink
Added bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharpz7 committed Jan 21, 2021
1 parent 483afdb commit b9a2a4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ func (job *taskJob) DockerCmd() *exec.Cmd {
if err != nil {
handleAPI(err, job, "Failed to build request")
}
req.Header.Set("Authorization", "token "+f.Token)

if f.Token != "" {
req.Header.Set("Authorization", "token "+f.Token)
}

req.Header.Set("Accept", "application/vnd.github.v3.raw")

resp, err := http.DefaultClient.Do(req)
Expand Down

0 comments on commit b9a2a4d

Please sign in to comment.