forked from TrueCloudLab/frostfs-s3-gw
[#562] Add tests for form encryption params
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
This commit is contained in:
parent
4a4ce00994
commit
128939c01e
7 changed files with 196 additions and 15 deletions
|
@ -391,7 +391,7 @@ func (h *handler) formEncryptionParamsBase(r *http.Request, isCopySource bool) (
|
|||
if tlsTerminationStr := r.Header.Get(h.cfg.TLSTerminationHeader()); len(tlsTerminationStr) > 0 {
|
||||
tlsTermination, err := strconv.ParseBool(tlsTerminationStr)
|
||||
if err != nil {
|
||||
h.reqLogger(r.Context()).Warn(logs.WarnInvalidTypeTLSTerminationHeader, zap.Error(err))
|
||||
h.reqLogger(r.Context()).Warn(logs.WarnInvalidTypeTLSTerminationHeader, zap.String("header", tlsTerminationStr), zap.Error(err))
|
||||
} else {
|
||||
needCheckTLS = !tlsTermination
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue