Skip to content

Commit 575d4bc

Browse files
Add docs from gofiber/fiber@fd18830
1 parent 7804618 commit 575d4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/api/ctx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ app.Get("/", func(c fiber.Ctx) error {
543543

544544
### Body
545545

546-
As per the header `Content-Encoding`, this method will try to perform a file decompression from the **body** bytes. In case no `Content-Encoding` header is sent, it will perform as [BodyRaw](#bodyraw).
546+
As per the header `Content-Encoding`, this method will try to perform a file decompression from the **body** bytes. In case no `Content-Encoding` header is sent (or when it is set to `identity`), it will perform as [BodyRaw](#bodyraw). If an unknown or unsupported encoding is encountered, the response status will be `415 Unsupported Media Type` or `501 Not Implemented`.
547547

548548
```go title="Signature"
549549
func (c fiber.Ctx) Body() []byte

0 commit comments

Comments
 (0)