Skip to content

Commit

Permalink
fix: do not dump request
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Feb 21, 2020
1 parent 7512626 commit 1736e27
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"io"
"log"
"net/http"
"net/http/httputil"
"strings"

"github.com/caarlos0/httperr"
Expand Down Expand Up @@ -40,12 +39,6 @@ func main() {
var handler = http.NewServeMux()

handler.Handle("/", httperr.NewF(func(w http.ResponseWriter, r *http.Request) error {
bts, err := httputil.DumpRequest(r, false)
if err != nil {
return err
}
log.Println(string(bts))

var path = strings.Replace(r.URL.EscapedPath(), "/", "", 1)
log.Println(path)

Expand Down

0 comments on commit 1736e27

Please sign in to comment.