mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-31 17:30:42 +01:00
Avoid xattr printed out as HTTP headers
fix https://github.com/chrislusf/seaweedfs/issues/2336
This commit is contained in:
1 parent
96514f0f00
commit
7504be58f9
2 files changed
+17
-7
No files matched your search
@@ -97,7 +97,10 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
|
||||
|
||||
// print out the header from extended properties
|
||||
for k, v := range entry.Extended {
|
||||
w.Header().Set(k, string(v))
|
||||
if !strings.HasPrefix(k, "xattr-") {
|
||||
// "xattr-" prefix is set in filesys.XATTR_PREFIX
|
||||
w.Header().Set(k, string(v))
|
||||
}
|
||||
}
|
||||
|
||||
//Seaweed custom header are not visible to Vue or javascript
|
||||
|
||||
Reference in new issue
Block a user