Skip to content

Commit bdf066e

Browse files
authored
HTTP415 response may include Accept-Post not Accept header (#35424)
1 parent 055a1e9 commit bdf066e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

files/en-us/web/http/status/415/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If the server implementation expects at least a MIME type `Content-Type: applica
4242
HTTP/1.1 415 Unsupported Media Type
4343
Date: Fri, 28 Jun 2024 12:00:00 GMT
4444
Server: Apache/2.4.41 (Ubuntu)
45-
Accept: application/json; charset=UTF-8
45+
Accept-Post: application/json; charset=UTF-8
4646
Content-Length: 0
4747
```
4848

@@ -62,13 +62,13 @@ Content-Type: application/x-www-form-urlencoded
6262
}
6363
```
6464

65-
In this case, the server responds with a 415, with the required content type for the request in the {{HTTPHeader("Accept")}} header:
65+
In this case, the server responds with a 415, with the required content type for the request in the {{HTTPHeader("Accept-Post")}} header:
6666

6767
```http
6868
HTTP/1.1 415 Unsupported Media Type
6969
Date: Fri, 28 Jun 2024 12:00:00 GMT
7070
Server: Apache/2.4.41 (Ubuntu)
71-
Accept: application/json; charset=UTF-8
71+
Accept-Post: application/json; charset=UTF-8
7272
Content-Length: 0
7373
```
7474

@@ -81,4 +81,4 @@ Content-Length: 0
8181
- [HTTP response status codes](/en-US/docs/Web/HTTP/Status)
8282
- {{HTTPHeader("Content-Type")}}
8383
- {{HTTPHeader("Content-Encoding")}}
84-
- {{HTTPHeader("Accept")}}
84+
- {{HTTPHeader("Accept-Post")}}

0 commit comments

Comments
 (0)