feat: add /v1/resources/ long-op and content-type handling
This commit is contained in:
parent
749587f98f
commit
559fd2c85c
@ -90,6 +90,8 @@ func defaultContentTypeForPath(path string) string {
|
||||
switch {
|
||||
case strings.HasPrefix(path, "/v1/models/"):
|
||||
return "application/octet-stream"
|
||||
case strings.HasPrefix(path, "/v1/resources/"):
|
||||
return "application/octet-stream"
|
||||
case path == "/v1/face-gallery":
|
||||
return "application/octet-stream"
|
||||
default:
|
||||
@ -113,6 +115,9 @@ func isLongOp(method, path string) bool {
|
||||
if strings.HasPrefix(path, "/v1/models/") {
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(path, "/v1/resources/") {
|
||||
return true
|
||||
}
|
||||
if path == "/v1/face-gallery" {
|
||||
return true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user