Skip to content

Commit

Permalink
fix content-type in test
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Aug 17, 2023
1 parent eb38985 commit c020800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/overlord/logstate/loki/loki_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (*suite) TestRequest(c *C) {

server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
c.Assert(r.Method, Equals, http.MethodPost)
c.Assert(r.Header.Get("Content-Type"), Equals, "application/json")
c.Assert(r.Header.Get("Content-Type"), Equals, "application/json; charset=utf-8")

reqBody, err := io.ReadAll(r.Body)
c.Assert(err, IsNil)
Expand Down

0 comments on commit c020800

Please sign in to comment.