File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
2222 "io"
2323 "net/http"
2424 "strings"
25- "unicode/utf8"
2625
2726 "github.com/go-openapi/runtime"
2827 "github.com/go-openapi/runtime/middleware"
@@ -35,14 +34,6 @@ import (
3534
3635func registerInspectHandler (api * operations.ConsoleAPI ) {
3736 api .InspectInspectHandler = inspectApi .InspectHandlerFunc (func (params inspectApi.InspectParams , principal * models.Principal ) middleware.Responder {
38- if v , err := base64 .URLEncoding .DecodeString (params .File ); err == nil && utf8 .Valid (v ) {
39- params .File = string (v )
40- }
41-
42- if v , err := base64 .URLEncoding .DecodeString (params .Volume ); err == nil && utf8 .Valid (v ) {
43- params .Volume = string (v )
44- }
45-
4637 k , r , err := getInspectResult (principal , & params )
4738 if err != nil {
4839 return inspectApi .NewInspectDefault (err .Code ).WithPayload (err .APIError )
You can’t perform that action at this time.
0 commit comments