Eugeniy E. Mikhailov
d6b0e0ff1c
Remove "Content-Length" header if http.Error is issued ( #5981 )
4 months ago
vadimartynov
86d92a42b4
Added tls for http clients ( #5766 )
* Added global http client
* Added Do func for global http client
* Changed the code to use the global http client
* Fix http client in volume uploader
* Fixed pkg name
* Fixed http util funcs
* Fixed http client for bench_filer_upload
* Fixed http client for stress_filer_upload
* Fixed http client for filer_server_handlers_proxy
* Fixed http client for command_fs_merge_volumes
* Fixed http client for command_fs_merge_volumes and command_volume_fsck
* Fixed http client for s3api_server
* Added init global client for main funcs
* Rename global_client to client
* Changed:
- fixed NewHttpClient;
- added CheckIsHttpsClientEnabled func
- updated security.toml in scaffold
* Reduce the visibility of some functions in the util/http/client pkg
* Added the loadSecurityConfig function
* Use util.LoadSecurityConfiguration() in NewHttpClient func
5 months ago
Konstantin Lebedev
5ffacbb6ea
refactor all methods strings to const ( #5726 )
6 months ago
chrislu
ded761ffc5
adjust visibility
6 months ago
Sébastien
0775d05a23
fix: http range request return status 500 ( #5251 )
When volume server unavailable for at least one chunk; was returning status 206.
Split `StreamContent` in two parts,
- first prepare, to get chunk info and return stream function
- then write chunk, with that stream function
That allow to catch error in first step before setting response status code in `processRangeRequest`
11 months ago
zemul
f352616b7d
Volume range read use sync.pool ( #4422 )
2 years ago
chrislu
fc6b9e6e0c
volume server logs add url info
debug https://github.com/seaweedfs/seaweedfs/issues/3964
2 years ago
chrislu
7e52b1e195
return err for processRangeRequest()
2 years ago
Konstantin Lebedev
82c2ce74db
more error details in the log ( #3568 )
* more error details in the log
https://github.com/seaweedfs/seaweedfs/issues/3567
* format message
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
Konstantin Lebedev
31a929f7f2
logging processRangeRequest errors
3 years ago
chrislu
27732ecfa4
move s3 related constants from package http to s3_constants
3 years ago
chrislu
6d3db4445b
buffer for all range requests
3 years ago
chrislu
a96d4254e9
filer, s3, volume server: a bit memory optimization
3 years ago
chrislu
7210558c7b
s3: pass through s3 presigned headers
fix https://github.com/chrislusf/seaweedfs/discussions/2502
3 years ago
Chris Lu
de1ec050e8
fier/s3: save "Content-Disposition" to extended properties
related to https://github.com/chrislusf/seaweedfs/issues/2371
3 years ago
Chris Lu
34f764007f
escape file name only when necessary
3 years ago
Chris Lu
8e9273db99
s3: use "response-content-disposition" to overwrite default content-disposition
fix one part of https://github.com/chrislusf/seaweedfs/issues/2371
see https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
3 years ago
Chris Lu
6923af7280
refactoring
3 years ago
Chris Lu
570d2eccec
skip body if not allowed by http status
3 years ago
Chris Lu
0b2a92d371
skip if http.StatusNoContent
3 years ago
Chris Lu
3668d10664
range query for mp4 video play
fix https://github.com/chrislusf/seaweedfs/issues/2156
4 years ago
Chris Lu
6c82326575
use bytes.Buffer to reduce memory allocation and gc
4 years ago
Konstantin Lebedev
03d1199d5f
Revert "revert PR #1903 avoid http error: superfluous response.WriteHeader"
This reverts commit ac71117e
4 years ago
Chris Lu
da0a4e775b
Revert "Revert "Merge pull request #2027 from bingoohuang/master""
This reverts commit d74cdf0115
.
4 years ago
Chris Lu
ac71117ee6
revert PR #1903 avoid http error: superfluous response.WriteHeader
4 years ago
Chris Lu
d74cdf0115
Revert "Merge pull request #2027 from bingoohuang/master"
Need to revert because docker image build failed. The docker apk package only has go 1.15.
4 years ago
bingoohuang
7a9d27fce8
promote to go:embed instead of github.com/rakyll/statik
4 years ago
Konstantin Lebedev
90510e3137
If WriteHeader is not called explicitly, the first call to Write
will trigger an implicit WriteHeader(http.StatusOK).
WriteHeader: Only one header may be written. Go does not currently!
4 years ago
Chris Lu
6daa932f5c
refactoring to get master function, instead of passing master values directly
this will enable retrying later
4 years ago
Chris Lu
698f58f7c4
filer, s3: add http status 206 as late as possible
fix https://github.com/chrislusf/seaweedfs/issues/1746
4 years ago
Chris Lu
1bf22c0b5b
go fmt
4 years ago
Chris Lu
8baba93fce
rename parameter name to "disk"
4 years ago
Chris Lu
0d2ec832e2
rename from volumeType to diskType
4 years ago
Chris Lu
e9cd798bd3
adding volume type
4 years ago
Chris Lu
95c0de285d
refactoring
4 years ago
Chris Lu
6856b0d57e
filer: add API to add/modify/delete tagging
4 years ago
Chris Lu
f022aff289
add back http.StatusPartialContent
revert e7c04af1d0
4 years ago
Chris Lu
3faa0aa448
rename
4 years ago
Chris Lu
023a1efdf2
set filename in Content-Disposition header
4 years ago
Chris Lu
e7c04af1d0
skip http.StatusPartialContent in case of error and superfluous response.WriteHeader
5 years ago
Chris Lu
bc2ec6774d
inject git version into build
5 years ago
bingoohuang
41cab5d69f
log JSON response if httpStatus >= 400
5 years ago
Chris Lu
308688c8d0
filer: add back image resizing capability
5 years ago
Chris Lu
2e3f6ad3a9
filer: remember content is gzipped or not
5 years ago
Chris Lu
9b3109a5d8
filer: processing all response headers, no pass through to volume server
* filer calculate MD5 etag
* filer handle response headers, instread of pass it to volume servers
5 years ago
Chris Lu
ea1169dc80
filer cipher: single chunk http POST and PUT and read
5 years ago
Chris Lu
13e215ee5c
filer: option to encrypt data on volume server
5 years ago
Chris Lu
9b01a99d9a
adjust logging
5 years ago
Chris Lu
3eafec4b29
volume: add option to limit file size
5 years ago