Skip to content

Commit

Permalink
iter7 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ex0rcist committed Jul 19, 2024
1 parent 1ba09a7 commit b66b6ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *API) Report(name string, metric metrics.Metric) *API {
ctx := context.Background()

// todo: another transport?
url := "http://" + c.address.String() + "/update"
url := "http://" + c.address.String() + "/update/"

var mex metrics.MetricExchange

Expand Down
1 change: 1 addition & 0 deletions internal/server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func NewRouter(storageService storage.StorageService) http.Handler {

router.Use(middleware.RealIP)
router.Use(logging.RequestsLogger)
router.Use(middleware.StripSlashes)

router.NotFound(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotFound) // no default body
Expand Down

0 comments on commit b66b6ad

Please sign in to comment.