From 04f3905ea12f941147ee7f715840e9e88ec04895 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Mon, 8 Apr 2019 12:28:15 +0200 Subject: [PATCH] client: fix content type header case --- internal/services/configstore/api/client.go | 2 +- internal/services/gateway/api/client.go | 2 +- internal/services/runservice/scheduler/api/client.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/services/configstore/api/client.go b/internal/services/configstore/api/client.go index 781057e..70482d6 100644 --- a/internal/services/configstore/api/client.go +++ b/internal/services/configstore/api/client.go @@ -31,7 +31,7 @@ import ( "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. type Client struct { diff --git a/internal/services/gateway/api/client.go b/internal/services/gateway/api/client.go index 3b26dee..e4ff720 100644 --- a/internal/services/gateway/api/client.go +++ b/internal/services/gateway/api/client.go @@ -30,7 +30,7 @@ import ( "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. type Client struct { diff --git a/internal/services/runservice/scheduler/api/client.go b/internal/services/runservice/scheduler/api/client.go index e5aa0e8..7c55b3b 100644 --- a/internal/services/runservice/scheduler/api/client.go +++ b/internal/services/runservice/scheduler/api/client.go @@ -30,7 +30,7 @@ import ( 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. type Client struct {