Files
podman/pkg/api/handlers/compat/unsupported.go
baude 827f6c9cb0 Reduce general binding binary size
when using the bindings to *only* make a connection, the binary was
rough 28MB.  This PR reduces it down to 11.  There is more work to do
but it will come in a secondary PR.

Signed-off-by: baude <bbaude@redhat.com>
2021-01-13 09:35:24 -06:00

18 lines
441 B
Go

package compat
import (
"fmt"
"net/http"
"github.com/containers/podman/v2/pkg/api/handlers/utils"
"github.com/containers/podman/v2/pkg/errorhandling"
log "github.com/sirupsen/logrus"
)
func UnsupportedHandler(w http.ResponseWriter, r *http.Request) {
msg := fmt.Sprintf("Path %s is not supported", r.URL.Path)
log.Infof("Request Failed: %s", msg)
utils.WriteJSON(w, http.StatusNotFound, errorhandling.ErrorModel{Message: msg})
}