Skip to content

Commit

Permalink
Add json content-type to get object route (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamax2 authored Mar 17, 2021
1 parent 105dbb9 commit c735da8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fakestorage/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ func (s *Server) getObject(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Accept-Ranges", "bytes")
w.Header().Set("Content-Type", "application/json")
encoder.Encode(newObjectResponse(obj))
}

Expand Down

0 comments on commit c735da8

Please sign in to comment.