Skip to content

🧹 [Maintenance]: AutoFormat should support CBOR #3664

@knuppe

Description

@knuppe

Maintenance Task Description

Since msgpack is supported in ctx.AutoFormat, CBOR should also be supported.

fiber/res.go

Lines 366 to 368 in fcd66f5

func (r *DefaultRes) AutoFormat(body any) error {
// Get accepted content type
accept := r.c.Accepts("html", "json", "txt", "xml", "msgpack")

Impact on the Project

Improves consistency with already implemented functionality.

Additional Context (optional)

No response

Checklist:

  • I have confirmed that this maintenance task is currently not being addressed.
  • I understand that this task will be evaluated by the maintainers and prioritized accordingly.
  • I am available to provide further information if needed.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions