[ARVADOS] updated: 1.3.0-2784-g19a9f4a4c

Git user git at public.arvados.org
Thu Jul 30 19:21:43 UTC 2020


Summary of changes:
 services/keep-web/s3.go | 2 ++
 1 file changed, 2 insertions(+)

       via  19a9f4a4cfc7c7937f2140f7504521bb76fdf843 (commit)
      from  481d2dd74f2323347ccfbc8009420dfea239287b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 19a9f4a4cfc7c7937f2140f7504521bb76fdf843
Author: Tom Clegg <tom at tomclegg.ca>
Date:   Thu Jul 30 15:21:19 2020 -0400

    16535: Set header Content-Type: application/xml.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at tomclegg.ca>

diff --git a/services/keep-web/s3.go b/services/keep-web/s3.go
index 7c3aedff3..bc43c5243 100644
--- a/services/keep-web/s3.go
+++ b/services/keep-web/s3.go
@@ -70,6 +70,7 @@ func (h *handler) serveS3(w http.ResponseWriter, r *http.Request) bool {
 		// Path is "/{uuid}" or "/{uuid}/", has no object name
 		if _, ok := r.URL.Query()["versioning"]; ok {
 			// GetBucketVersioning
+			w.Header().Set("Content-Type", "application/xml")
 			fmt.Fprintln(w, `<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>`)
 		} else {
 			// ListObjects
@@ -305,6 +306,7 @@ func (h *handler) s3list(w http.ResponseWriter, r *http.Request, fs arvados.Cust
 			sort.Strings(resp.CommonPrefixes)
 		}
 	}
+	w.Header().Set("Content-Type", "application/xml")
 	if err := xml.NewEncoder(w).Encode(resp); err != nil {
 		ctxlog.FromContext(r.Context()).WithError(err).Error("error writing xml response")
 	}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list