Skip to content

Commit

Permalink
bumped to v0.4.3. fixed bug where unknown content encoding was not pr…
Browse files Browse the repository at this point in the history
…opagated
  • Loading branch information
simonmittag committed Mar 27, 2022
1 parent b5712b2 commit 8a93c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var waitDuration time.Duration
var Version = "v0.4.2"
var Version = "v0.4.3"
var Port int
var Prefix string
var rc = 0
Expand All @@ -41,8 +41,8 @@ func nocontentenc(w http.ResponseWriter, r *http.Request) {

func unknowncontentenc(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "mse6 "+Version)
w.WriteHeader(200)
w.Header().Set("Content-Encoding", "unknown")
w.WriteHeader(200)
w.Write([]byte(`{"mse6":"Hello from the unknowncontentenc endpoint"}`))
log.Info().Msgf("served %v request with X-Request-Id %s", r.URL.Path, getXRequestId(r))
}
Expand Down

0 comments on commit 8a93c1c

Please sign in to comment.