Answer the principal PROPFIND with home-set only
Minimization round 3: the client asks eight properties on the
principal; addressbook-home-set is the only one discovery depends on
per our own docs, and round 2 already proved supported-report-set
dispensable on the collection.
Assisted-by: GLM 5.2 via pi
diff --git a/lib/pro_tacts/web.rb b/lib/pro_tacts/web.rb
index 4ca5cf6..258609b 100644
--- a/lib/pro_tacts/web.rb
+++ b/lib/pro_tacts/web.rb
@@ -131,24 +131,9 @@ module ProTacts
<d:href>/dav/principal/</d:href>
<d:propstat>
<d:prop>
- <d:displayname>Default Principal</d:displayname>
- <d:principal-URL>
- <d:href>/dav/principal/</d:href>
- </d:principal-URL>
- <d:resourcetype>
- <d:principal/>
- </d:resourcetype>
<card:addressbook-home-set>
<d:href>/dav/addressbook/</d:href>
</card:addressbook-home-set>
- <d:supported-report-set>
- <d:supported-report>
- <d:report><card:addressbook-multiget/></d:report>
- </d:supported-report>
- <d:supported-report>
- <d:report><card:addressbook-query/></d:report>
- </d:supported-report>
- </d:supported-report-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
diff --git a/test/fixtures/macos-exchange/04-propfind-principal/response b/test/fixtures/macos-exchange/04-propfind-principal/response
index 0f4e547..72a8a59 100644
--- a/test/fixtures/macos-exchange/04-propfind-principal/response
+++ b/test/fixtures/macos-exchange/04-propfind-principal/response
@@ -7,24 +7,9 @@ Content-Type: text/xml
<d:href>/dav/principal/</d:href>
<d:propstat>
<d:prop>
- <d:displayname>Default Principal</d:displayname>
- <d:principal-URL>
- <d:href>/dav/principal/</d:href>
- </d:principal-URL>
- <d:resourcetype>
- <d:principal/>
- </d:resourcetype>
<card:addressbook-home-set>
<d:href>/dav/addressbook/</d:href>
</card:addressbook-home-set>
- <d:supported-report-set>
- <d:supported-report>
- <d:report><card:addressbook-multiget/></d:report>
- </d:supported-report>
- <d:supported-report>
- <d:report><card:addressbook-query/></d:report>
- </d:supported-report>
- </d:supported-report-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>