From c735da8cdb2f3accaf1c3f465d048e837911b9fe Mon Sep 17 00:00:00 2001 From: Maxim Tretyakov Date: Wed, 17 Mar 2021 17:40:51 +0500 Subject: [PATCH] Add json content-type to get object route (#457) --- fakestorage/object.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fakestorage/object.go b/fakestorage/object.go index fa7b188166..be984f9c27 100644 --- a/fakestorage/object.go +++ b/fakestorage/object.go @@ -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)) }