You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/web/http/reference/status/205/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ The instruction to "reset content" can mean clearing the contents of a form, res
15
15
> In web applications that use the `205` status, it's assumed that the client handles resetting content after a `205` response.
16
16
> This is typically done via JavaScript, as resetting content such as forms after a `205` response is not handled natively by browsers.
17
17
18
-
Note that the response must not include any content or the {{HTTPHeader("Content-Length")}} header (browsers may reject responses that include content).
18
+
Note that the response must not include any content, and browsers may reject responses that do so.
19
+
The response should not include the {{HTTPHeader("Content-Length")}} header either, but if it does the value must be `0`.
19
20
The empty response may also be indicated using the {{HTTPHeader("Transfer-Encoding", "Transfer-Encoding: chunked")}} header with an empty chunk.
20
21
21
22
## Status
@@ -34,17 +35,16 @@ The client in this example sends a `POST` request to submit a form with the comm
34
35
POST /submit HTTP/1.1
35
36
Host: example.com
36
37
Content-Type: application/x-www-form-urlencoded
37
-
Content-Length: 15
38
+
Content-Length: 16
38
39
39
-
comment=Hello!
40
+
comment=Hello%21
40
41
```
41
42
42
43
After successfully processing the form submission, the server responds with the following `205` response, indicating that the client should reset the form.
0 commit comments