chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
Eng Zer Jun
a23bcbb7ec
refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
Chris Lu
d688e10ed1
do not try to compress if not sure about the file content
3 years ago
Chris Lu
332f5ad3a8
revert temporary changes that disabled compression
fix https://github.com/chrislusf/seaweedfs/issues/2362
3 years ago
Chris Lu
6c82326575
use bytes.Buffer to reduce memory allocation and gc
4 years ago
Chris Lu
039ad101b1
manifest file also need to detect compression
fix https://github.com/chrislusf/seaweedfs/issues/1724#issuecomment-753585046
4 years ago
Chris Lu
0da7ecfd29
go fmt
4 years ago
Chris Lu
92f906b6fc
remove zstd
fix https://github.com/chrislusf/seaweedfs/issues/1629
4 years ago
Chris Lu
ab6e5c0dc4
adjust error message
4 years ago
Chris Lu
4ecfa9879d
volume: report Content-MD5 in response header
4 years ago
Chris Lu
f89186a3cf
better logging
4 years ago
Chris Lu
20d9cfae86
volume: following md5 base64 encoding
fix https://github.com/chrislusf/seaweedfs/issues/1374
5 years ago
Chris Lu
2ff37ccdbd
testing parsing the upload
The mime type is always the value passed in.
Compress or not depends on the content detection, file name extension, and compression ratio.
If the content is already compressed, need to know the content size.
5 years ago
Kimbsen
4eeab2a379
remove unused imports
5 years ago
Kimbsen
ffddecebef
do md5 validation AFTER decompression
5 years ago
Chris Lu
fe60db404a
prepare for zstd
5 years ago
Kimbsen
6b1e93ba0b
check request header not part header for content-encoding
5 years ago
Kimbsen
38626cb584
don't forget the last few bytes
5 years ago
Kimbsen
8d1f6cd567
added optional md5 verification of uploaded data
5 years ago
Chris Lu
3080c197e3
rename UnCompressData to DecompressData
5 years ago
Chris Lu
e912fd15e3
renaming
5 years ago
Chris Lu
16fe132a20
detect mime type before replicating to other volume servers
5 years ago
Chris Lu
22400c6633
consistent gzip logic
local store gzip same as replicated writes
5 years ago
Chris Lu
ea1169dc80
filer cipher: single chunk http POST and PUT and read
5 years ago