Skip to content

Commit

Permalink
fix: bug when creating a new short link
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza12700 committed Sep 13, 2024
1 parent 31060e7 commit 5308478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/shawty.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func Shawty(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated)
w.Header().Set("Content-Type", "text/html; charset=utf-8")
data := ShortLink{
ShortUrl: code,
ShortUrl: hashUrl,
OriginalUrl: longUrl,
}
asserts.NoErr(templ.Execute(w, data), "Failed to execute template short-link.html")
Expand Down

0 comments on commit 5308478

Please sign in to comment.