Skip to content

Commit

Permalink
chore: enable header names normalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
cupello committed Apr 16, 2021
1 parent caa16c3 commit 648a912
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ package cmd
import (
"context"
"fmt"
"os"
"os/signal"
"runtime"
"syscall"
"time"

"github.com/b2wdigital/restQL-golang/v6/internal/platform/conf"
"github.com/b2wdigital/restQL-golang/v6/internal/platform/logger"
"github.com/b2wdigital/restQL-golang/v6/internal/platform/web"
Expand All @@ -11,11 +17,6 @@ import (
"github.com/valyala/fasthttp"
_ "go.uber.org/automaxprocs"
"golang.org/x/sync/errgroup"
"os"
"os/signal"
"runtime"
"syscall"
"time"
)

var build string
Expand Down Expand Up @@ -68,15 +69,15 @@ func startServer() error {
TCPKeepalive: true,
IdleTimeout: serverCfg.IdleTimeout,
ReadTimeout: serverCfg.ReadTimeout,
DisableHeaderNamesNormalizing: true,
DisableHeaderNamesNormalizing: false,
}
health := &fasthttp.Server{
Name: "health",
Handler: web.Health(log, cfg),
TCPKeepalive: true,
IdleTimeout: serverCfg.IdleTimeout,
ReadTimeout: serverCfg.ReadTimeout,
DisableHeaderNamesNormalizing: true,
DisableHeaderNamesNormalizing: false,
}

serverErrors := make(chan error, 1)
Expand Down

0 comments on commit 648a912

Please sign in to comment.