mirror of https://github.com/containers/podman.git
REST API v2 - ping - fix typo in header
Signed-off-by: Riyad Preukschas <riyad@informatik.uni-bremen.de>
This commit is contained in:
parent
397e9a9f1b
commit
0ae1221a46
|
|
@ -19,7 +19,7 @@ func Ping(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Cache-Control", "no-cache")
|
w.Header().Set("Cache-Control", "no-cache")
|
||||||
w.Header().Set("Pragma", "no-cache")
|
w.Header().Set("Pragma", "no-cache")
|
||||||
|
|
||||||
w.Header().Set("Libpod-Buildha-Version", buildah.Version)
|
w.Header().Set("Libpod-Buildah-Version", buildah.Version)
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
|
||||||
if r.Method == http.MethodGet {
|
if r.Method == http.MethodGet {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ func (s *APIServer) registerPingHandlers(r *mux.Router) error {
|
||||||
// Max Podman API Version the server supports.
|
// Max Podman API Version the server supports.
|
||||||
// Available if service is backed by Podman, therefore may be used to
|
// Available if service is backed by Podman, therefore may be used to
|
||||||
// determine if talking to Podman engine or another engine
|
// determine if talking to Podman engine or another engine
|
||||||
// Libpod-Buildha-Version:
|
// Libpod-Buildah-Version:
|
||||||
// type: string
|
// type: string
|
||||||
// description: |
|
// description: |
|
||||||
// Default version of libpod image builder.
|
// Default version of libpod image builder.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue