Skip to content

Commit 9c47796

Browse files
committed
sharing/get: check default Content-Disposition
1 parent acf5741 commit 9c47796

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

radicale/tests/test_sharing.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,6 +4568,7 @@ def test_sharing_api_bday_self(self) -> None:
45684568
"enforce_properties_overlay": "True",
45694569
"collection_by_bday": "True"},
45704570
"logging": {"request_header_on_debug": "False",
4571+
"response_header_on_debug": "True",
45714572
"response_content_on_debug": "True",
45724573
"request_content_on_debug": "True"},
45734574
"rights": {"type": "owner_only"}})
@@ -4693,3 +4694,12 @@ def test_sharing_api_bday_self(self) -> None:
46934694
assert "D:sync-token" not in response
46944695
assert "C:supported-calendar-component-set" in response
46954696
assert "D:current-user-privilege-set" in response
4697+
4698+
# verify content as owner
4699+
logging.info("\n*** GET collection owner -> ok")
4700+
_, headers, answer = self.request("GET", path_shared, login="owner:ownerpw")
4701+
assert 'Content-Type' in headers
4702+
assert 'text/calendar' in headers['Content-Type']
4703+
# title from default
4704+
assert 'Content-Disposition' in headers
4705+
assert 'Calendar.ics' in headers['Content-Disposition']

0 commit comments

Comments
 (0)