Skip to content

Commit

Permalink
chore: remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Apr 12, 2023
1 parent de08310 commit 4bb1a26
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gateway/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ func handleServiceWorkerRegistration(r *http.Request) (err *ErrorResponse) {
// handleIpnsB58mhToCidRedirection redirects from /ipns/b58mh to /ipns/cid in
// the most cost-effective way.
func handleIpnsB58mhToCidRedirection(w http.ResponseWriter, r *http.Request) bool {
fmt.Println(w.Header().Get("Location"))
if w.Header().Get("Location") != "" {
// Ignore this if there is already a redirection in place. This happens
// if there is a subdomain redirection. In that case, the path is already
Expand All @@ -746,7 +745,6 @@ func handleIpnsB58mhToCidRedirection(w http.ResponseWriter, r *http.Request) boo
}

pathParts := strings.Split(r.URL.Path, "/")
fmt.Println(pathParts)
if len(pathParts) < 3 {
return false
}
Expand Down

0 comments on commit 4bb1a26

Please sign in to comment.