Seaweed custom header are not visible to Vue or javascript
This commit is contained in:
@@ -100,7 +100,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
|
|||||||
w.Header().Set(k, string(v))
|
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{}
|
seaweedHeaders := []string{}
|
||||||
for header, _ := range w.Header() {
|
for header, _ := range w.Header() {
|
||||||
if strings.HasPrefix(header, "Seaweed-") {
|
if strings.HasPrefix(header, "Seaweed-") {
|
||||||
|
|||||||
Reference in New Issue
Block a user