Skip to content

Commit

Permalink
fix: disable implicit redirect content-type
Browse files Browse the repository at this point in the history
it's text/html unless otherwise specified
  • Loading branch information
fedragon committed Jul 2, 2024
1 parent 4bceafd commit a932b9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/bookmarks.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func Handle(w http.ResponseWriter, r *http.Request) {
}

w.Header().Set("Location", link)
w.Header().Set("Content-Type", "")
http.Redirect(w, r, link, http.StatusFound)
return
})
Expand Down

0 comments on commit a932b9c

Please sign in to comment.