提交 b214db3f 编写于 作者: R Rossen Stoyanchev

Rename HttpStatus 308 to Permanent Redirect

Issue: SPR-11854
上级 6b129c52
......@@ -317,9 +317,9 @@ public class StatusResultMatchers {
}
/**
* Assert the response status code is {@code HttpStatus.RESUME_INCOMPLETE} (308).
* Assert the response status code is {@code HttpStatus.PERMANENT_REDIRECT} (308).
*/
public ResultMatcher isResumeIncomplete() {
public ResultMatcher isPermanentRedirect() {
return matcher(HttpStatus.valueOf(308));
}
......
......@@ -150,11 +150,10 @@ public enum HttpStatus {
*/
TEMPORARY_REDIRECT(307, "Temporary Redirect"),
/**
* {@code 308 Resume Incomplete}.
* @see <a href="http://code.google.com/p/gears/wiki/ResumableHttpRequestsProposal">A proposal for supporting
* resumable POST/PUT HTTP requests in HTTP/1.0</a>
* {@code 308 Permanent Redirect}.
* @see <a href="http://tools.ietf.org/html/rfc7238">RFC 7238</a>
*/
RESUME_INCOMPLETE(308, "Resume Incomplete"),
PERMANENT_REDIRECT(308, "Permanent Redirect"),
// --- 4xx Client Error ---
......
......@@ -54,7 +54,7 @@ public class HttpStatusTests {
statusCodes.put(304, "NOT_MODIFIED");
statusCodes.put(305, "USE_PROXY");
statusCodes.put(307, "TEMPORARY_REDIRECT");
statusCodes.put(308, "RESUME_INCOMPLETE");
statusCodes.put(308, "PERMANENT_REDIRECT");
statusCodes.put(400, "BAD_REQUEST");
statusCodes.put(401, "UNAUTHORIZED");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册