Skip to content

Commit

Permalink
Merge pull request #217 from Strum355/patch-2
Browse files Browse the repository at this point in the history
Initialize map on declaration (round 2)
  • Loading branch information
Matt Bernier committed Oct 28, 2017
2 parents 003a205 + faa284b commit 0143b3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions helpers/inbound/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ func main() {
if err != nil {
log.Fatal("Check your Filepath. ", err)
}
Headers := make(map[string]string)
Headers["User-Agent"] = "SendGrid-Test"
Headers["Content-Type"] = "multipart/form-data; boundary=xYzZY"
Headers := map[string]string{
"User-Agent": "SendGrid-Test",
"Content-Type": "multipart/form-data; boundary=xYzZY",
}
method := rest.Post
request := rest.Request{
Method: method,
Expand Down

0 comments on commit 0143b3e

Please sign in to comment.