Skip to content

Commit

Permalink
SHIBUI-1750
Browse files Browse the repository at this point in the history
Updated test with notes about headers
  • Loading branch information
chasegawa committed May 4, 2021
1 parent 3249171 commit 90ede97
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.opensaml.saml.metadata.resolver.MetadataResolver;
import org.opensaml.saml.saml2.metadata.EntityDescriptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
Expand Down Expand Up @@ -45,7 +46,8 @@ public ResponseEntity<?> getOne(final @PathVariable String entityId, HttpServlet
return ResponseEntity.notFound().build();
}
EntityDescriptorRepresentation entityDescriptorRepresentation = entityDescriptorService.createRepresentationFromDescriptor(entityDescriptor);
return ResponseEntity.ok(entityDescriptorRepresentation);
ResponseEntity result = ResponseEntity.ok(entityDescriptorRepresentation);
return result;
}

@RequestMapping(value = "{entityId:.*}", produces = "application/xml")
Expand Down

0 comments on commit 90ede97

Please sign in to comment.