Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF redirects should be 303 See Other #2472

Merged
merged 1 commit into from
Dec 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public Response viewBioDetailsXml(@PathParam("orcid") String orcid) {
*
* @param orcid
* the ORCID that corresponds to the user's record
* @return A 307 redirect
* @return A 303 See Other redirect
*/
@GET
@Produces(value = { APPLICATION_RDFXML })
Expand All @@ -194,7 +194,7 @@ public Response redirBioDetailsRdf(@PathParam("orcid") String orcid) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return Response.temporaryRedirect(uri).build();
return Response.seeOther(uri).build();
}

/**
Expand All @@ -218,7 +218,7 @@ public Response viewBioDetailsRdf(@PathParam("orcid") String orcid) {
*
* @param orcid
* the ORCID that corresponds to the user's record
* @return A 307 redirect
* @return A 303 See Other redirect
*/
@GET
@Produces(value = { TEXT_N3, TEXT_TURTLE })
Expand All @@ -231,7 +231,7 @@ public Response redirBioDetailsTurtle(@PathParam("orcid") String orcid) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return Response.temporaryRedirect(uri).build();
return Response.seeOther(uri).build();
}

/**
Expand Down