mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 23:37:57 +08:00
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