Browse Source

Seaweed custom header are not visible to Vue or javascript

pull/1728/head
henry 4 years ago
parent
commit
b42c5b71c1
  1. 2
      weed/server/filer_server_handlers_read.go

2
weed/server/filer_server_handlers_read.go

@ -100,7 +100,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
w.Header().Set(k, string(v))
}
//Add some custom headers that need to be exposed
//Seaweed custom header are not visible to Vue or javascript
seaweedHeaders := []string{}
for header, _ := range w.Header() {
if strings.HasPrefix(header, "Seaweed-") {

Loading…
Cancel
Save