Skip to content

Commit

Permalink
trim " for host string
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya committed Apr 25, 2024
1 parent 1f8ede8 commit 4c396c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package server
import (
"io"
"net/http"
"strings"
"time"

"github.com/0xPolygonID/refresh-service/logger"
Expand Down Expand Up @@ -64,6 +65,7 @@ func (h *Handlers) Run(host string) error {
}
})

host = strings.Trim(host, "\"")
logger.DefaultLogger.Infof("Server starting on host '%s'", host)
httpServer := &http.Server{
Addr: host,
Expand Down

0 comments on commit 4c396c2

Please sign in to comment.