bump github.com/emicklei/go-restful/v3 to v3.11.0.

This commit is contained in:
charles-chenzz
2023-08-09 23:31:06 +08:00
parent 0241da314e
commit 409b46576f
56 changed files with 153 additions and 100 deletions

View File

@@ -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 {