adding compressiong support!
git-svn-id: https://weed-fs.googlecode.com/svn/trunk@60 282b0af5-e82d-9cf1-ede4-77906d7719d0
This commit is contained in:
@@ -39,7 +39,7 @@ func NewNeedle(r *http.Request) (n *Needle, e error) {
|
|||||||
if dotIndex > 0 {
|
if dotIndex > 0 {
|
||||||
ext := fname[dotIndex:]
|
ext := fname[dotIndex:]
|
||||||
mtype := mime.TypeByExtension(ext)
|
mtype := mime.TypeByExtension(ext)
|
||||||
if IsCompressable(ext, mtype){
|
if IsCompressable(ext, mtype) {
|
||||||
data = GzipData(data)
|
data = GzipData(data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user