aboutsummaryrefslogtreecommitdiff
path: root/weed/server/common.go
AgeCommit message (Collapse)AuthorFilesLines
2024-09-05Remove "Content-Length" header if http.Error is issued (#5981)Eugeniy E. Mikhailov1-0/+4
2024-07-16Added tls for http clients (#5766)vadimartynov1-1/+6
* 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
2024-07-01refactor all methods strings to const (#5726)Konstantin Lebedev1-1/+1
2024-06-24adjust visibilitychrislu1-16/+16
2024-01-29fix: http range request return status 500 (#5251)Sébastien1-7/+35
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`
2023-04-24Volume range read use sync.pool (#4422)zemul1-2/+11
2022-12-11volume server logs add url infochrislu1-1/+1
debug https://github.com/seaweedfs/seaweedfs/issues/3964
2022-09-07return err for processRangeRequest()chrislu1-12/+13
2022-09-01more error details in the log (#3568)Konstantin Lebedev1-0/+1
* more error details in the log https://github.com/seaweedfs/seaweedfs/issues/3567 * format message
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-6/+6
2022-06-15logging processRangeRequest errorsKonstantin Lebedev1-0/+4
2022-05-30move s3 related constants from package http to s3_constantschrislu1-2/+2
2022-03-07buffer for all range requestschrislu1-6/+6
2022-03-02filer, s3, volume server: a bit memory optimizationchrislu1-1/+4
2021-12-15s3: pass through s3 presigned headerschrislu1-6/+10
fix https://github.com/chrislusf/seaweedfs/discussions/2502
2021-10-12fier/s3: save "Content-Disposition" to extended propertiesChris Lu1-0/+3
related to https://github.com/chrislusf/seaweedfs/issues/2371
2021-10-11escape file name only when necessaryChris Lu1-0/+2
2021-10-11s3: use "response-content-disposition" to overwrite default content-dispositionChris Lu1-0/+5
fix one part of https://github.com/chrislusf/seaweedfs/issues/2371 see https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
2021-09-06refactoringChris Lu1-1/+10
2021-08-18skip body if not allowed by http statusChris Lu1-1/+14
2021-08-15skip if http.StatusNoContentChris Lu1-0/+4
2021-06-29range query for mp4 video playChris Lu1-0/+1
fix https://github.com/chrislusf/seaweedfs/issues/2156
2021-06-06use bytes.Buffer to reduce memory allocation and gcChris Lu1-1/+4
2021-05-20Revert "revert PR #1903 avoid http error: superfluous response.WriteHeader"Konstantin Lebedev1-4/+4
This reverts commit ac71117e
2021-05-10Revert "Revert "Merge pull request #2027 from bingoohuang/master""Chris Lu1-9/+7
This reverts commit d74cdf011553ae073d524a080f65f418c76ccaa7.
2021-05-05revert PR #1903 avoid http error: superfluous response.WriteHeaderChris Lu1-4/+4
2021-04-30Revert "Merge pull request #2027 from bingoohuang/master"2.42Chris Lu1-7/+9
Need to revert because docker image build failed. The docker apk package only has go 1.15.
2021-04-27promote to go:embed instead of github.com/rakyll/statikbingoohuang1-9/+7
2021-03-15If WriteHeader is not called explicitly, the first call to WriteKonstantin Lebedev1-4/+4
will trigger an implicit WriteHeader(http.StatusOK). WriteHeader: Only one header may be written. Go does not currently!
2021-02-17refactoring to get master function, instead of passing master values directlyChris Lu1-2/+2
this will enable retrying later
2021-02-09Merge branch 'master' into support_ssd_volumeChris Lu1-5/+4
2021-01-14filer, s3: add http status 206 as late as possibleChris Lu1-5/+4
fix https://github.com/chrislusf/seaweedfs/issues/1746
2020-12-16go fmtChris Lu1-1/+1
2020-12-13rename parameter name to "disk"Chris Lu1-1/+1
2020-12-13rename from volumeType to diskTypeChris Lu1-1/+1
2020-12-13adding volume typeChris Lu1-0/+1
2020-11-15refactoringChris Lu1-0/+1
2020-11-09filer: add API to add/modify/delete taggingChris Lu1-4/+6
2020-10-12add back http.StatusPartialContentChris Lu1-2/+2
revert https://github.com/chrislusf/seaweedfs/commit/e7c04af1d061ae0f09e044fd41969110f472447e
2020-07-25renameChris Lu1-1/+1
2020-07-25set filename in Content-Disposition headerChris Lu1-1/+1
2020-07-10skip http.StatusPartialContent in case of error and superfluous ↵Chris Lu1-2/+2
response.WriteHeader
2020-06-02inject git version into buildChris Lu1-3/+3
2020-05-28log JSON response if httpStatus >= 400bingoohuang1-0/+6
2020-03-20filer: add back image resizing capabilityChris Lu1-1/+1
2020-03-08filer: remember content is gzipped or notChris Lu1-2/+1
2020-03-08filer: processing all response headers, no pass through to volume serverChris Lu1-0/+106
* filer calculate MD5 etag * filer handle response headers, instread of pass it to volume servers
2020-03-07filer cipher: single chunk http POST and PUT and readChris Lu1-7/+7
2020-03-06filer: option to encrypt data on volume serverChris Lu1-1/+1
2020-01-21adjust loggingChris Lu1-1/+2