Skip to content

Commit

Permalink
fix(api): add image/jpeg content type to PosterHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Apr 17, 2018
1 parent 2d4d9ee commit b0e2495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ func (h *ProfileHandlers) getPosterHandler(w http.ResponseWriter, r *http.Reques
data := []byte{}
req := &core.Profile{
Peername: r.FormValue("peername"),
ID: r.FormValue("ID"),
ID: r.FormValue("id"),
}
if err := h.PosterPhoto(req, &data); err != nil {
util.WriteErrResponse(w, http.StatusInternalServerError, err)
return
}

w.Header().Set("Content-Type", "image/jpeg")
w.Write(data)
}

Expand Down

0 comments on commit b0e2495

Please sign in to comment.