client: fix content type header case
This commit is contained in:
parent
03b5a53510
commit
04f3905ea1
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue