We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 466abd6 + 4d40a3f commit e131cbeCopy full SHA for e131cbe
api/controllers/posts_controller.go
@@ -49,7 +49,7 @@ func (server *Server) CreatePost(w http.ResponseWriter, r *http.Request) {
49
responses.ERROR(w, http.StatusInternalServerError, formattedError)
50
return
51
}
52
- w.Header().Set("Lacation", fmt.Sprintf("%s%s/%d", r.Host, r.URL.Path, postCreated.ID))
+ w.Header().Set("Location", fmt.Sprintf("%s%s/%d", r.Host, r.URL.Path, postCreated.ID))
53
responses.JSON(w, http.StatusCreated, postCreated)
54
55
0 commit comments