Skip to content

Commit

Permalink
Fix ExposeHeader XML tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Dec 16, 2024
1 parent f215e38 commit b5ccf26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moto/s3/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ def _invalid_headers(self, url: str, headers: Dict[str, str]) -> bool:
{% endif %}
{% if cors.exposed_headers is not none %}
{% for header in cors.exposed_headers %}
<ExposedHeader>{{ header }}</ExposedHeader>
<ExposeHeader>{{ header }}</ExposeHeader>
{% endfor %}
{% endif %}
{% if cors.max_age_seconds is not none %}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_s3/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_s3_server_post_cors_exposed_header():
assert res.status_code == 200

cors_res = test_client.get("/?cors", "http://testcors.localhost:5000")
assert b"<ExposedHeader>ETag</ExposedHeader>" in cors_res.data
assert b"<ExposeHeader>ETag</ExposeHeader>" in cors_res.data

# Test OPTIONS bucket response and key response
for key_name in ("/", "/test"):
Expand Down

0 comments on commit b5ccf26

Please sign in to comment.