Skip to content

Commit

Permalink
Add MIME_ZIP (#512)
Browse files Browse the repository at this point in the history
Co-authored-by: 飞泽锴 <[email protected]>
  • Loading branch information
Feizekai and Feizekai authored Oct 10, 2022
1 parent 41ce0fb commit 5d08dc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func (r *Response) EntityWriter() (EntityReaderWriter, bool) {
if DefaultResponseMimeType == MIME_XML {
return entityAccessRegistry.accessorAt(MIME_XML)
}
if DefaultResponseMimeType == MIME_ZIP {
return entityAccessRegistry.accessorAt(MIME_ZIP)
}
// Fallback to whatever the route says it can produce.
// https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
for _, each := range r.routeProduces {
Expand Down

0 comments on commit 5d08dc1

Please sign in to comment.