client: fix content type header case

This commit is contained in:
Simone Gotti 2019-04-08 12:28:15 +02:00
parent 03b5a53510
commit 04f3905ea1
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
) )
var jsonContent = http.Header{"content-type": []string{"application/json"}} var jsonContent = http.Header{"Content-Type": []string{"application/json"}}
// Client represents a Gogs API client. // Client represents a Gogs API client.
type Client struct { type Client struct {

View File

@ -30,7 +30,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
) )
var jsonContent = http.Header{"content-type": []string{"application/json"}} var jsonContent = http.Header{"Content-Type": []string{"application/json"}}
// Client represents a Gogs API client. // Client represents a Gogs API client.
type Client struct { type Client struct {

View File

@ -30,7 +30,7 @@ import (
rstypes "github.com/sorintlab/agola/internal/services/runservice/types" rstypes "github.com/sorintlab/agola/internal/services/runservice/types"
) )
var jsonContent = http.Header{"content-type": []string{"application/json"}} var jsonContent = http.Header{"Content-Type": []string{"application/json"}}
// Client represents a Gogs API client. // Client represents a Gogs API client.
type Client struct { type Client struct {