Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 1, 2023
1 parent 4a0aa28 commit faf9567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fed/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (h *postHandler) Handle(w http.ResponseWriter, r *http.Request) {
if shouldRedirect(r) {
url := fmt.Sprintf("gemini://%s/view/%x", cfg.Domain, sha256.Sum256([]byte(postID)))
h.Log.Info("Redirecting to post over Gemini", "url", url)
w.Header().Set("Location", outbox)
w.Header().Set("Location", url)
w.WriteHeader(http.StatusMovedPermanently)
return
}
Expand Down

0 comments on commit faf9567

Please sign in to comment.