mirror of
https://github.com/versity/versitygw.git
synced 2026-09-20 15:04:27 +00:00
Merge pull request #2003 from versity/sis/missing-date-header-err-status-code
fix: change ErrMissingDateHeader http status code to 403
This commit is contained in:
+1
-1
@@ -527,7 +527,7 @@ var errorCodeResponse = map[ErrorCode]APIError{
|
||||
ErrMissingDateHeader: {
|
||||
Code: "AccessDenied",
|
||||
Description: "AWS authentication requires a valid Date or x-amz-date header.",
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
HTTPStatusCode: http.StatusForbidden,
|
||||
},
|
||||
ErrGetUploadsWithKey: {
|
||||
Code: "InvalidRequest",
|
||||
|
||||
@@ -232,7 +232,7 @@ export RUN_USERS=true
|
||||
}
|
||||
|
||||
@test "REST - ListBuckets - error Content-Type is application/xml" {
|
||||
run send_rest_go_command_check_header_key_and_value "400" "Content-Type" "application/xml" "-method" "GET" "-omitDate"
|
||||
run send_rest_go_command_check_header_key_and_value "403" "Content-Type" "application/xml" "-method" "GET" "-omitDate"
|
||||
assert_success
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user