Skip to content

Commit

Permalink
no need to init in seperate line
Browse files Browse the repository at this point in the history
  • Loading branch information
levrado committed Jan 26, 2017
1 parent c8e911c commit 9b985c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions job/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ func (j *JobRunner) setHeaders(req *http.Request) {
req.Header.Set("Content-Type", jsonContentType)

// Create a new header for our job properties and set the default header
j.job.RemoteProperties.Headers = make(http.Header)
j.job.RemoteProperties.Headers.Set("Content-Type", jsonContentType)
j.job.RemoteProperties.Headers = http.Header{"Content-Type": []string{jsonContentType}}

This comment has been minimized.

Copy link
@elimisteve

elimisteve Jan 26, 2017

Contributor

:-) Thanks

} else {
req.Header = j.job.RemoteProperties.Headers
}
Expand Down

0 comments on commit 9b985c5

Please sign in to comment.