Skip to content

Commit

Permalink
Fixes 4.1.2-B: Must support PUT for updating existing LDPRvs (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Jun 28, 2021
1 parent 7ec6313 commit 5eca0de
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -101,7 +101,10 @@ public void ldprvMustSupportPUTForExistingResources() {
final String resourceUri = getLocation(response);

final Header acceptTurtleHeader = new Header("Accept", "text/turtle");
final Response getResponse = doGet(resourceUri, acceptTurtleHeader);
final Header preferHeader = new Header("Prefer", "return=representation; " +
"include=\"http://www.w3.org/ns/ldp#PreferMinimalContainer\"; " +
"omit=\"http://fedora.info/definitions/fcrepo#ServerManaged\"");
final Response getResponse = doGet(resourceUri, preferHeader);
//verify that "Allow: PUT" header is present
confirmPresenceOfHeaderValueInMultiValueHeader("Allow", "PUT", getResponse);

Expand Down

0 comments on commit 5eca0de

Please sign in to comment.