Skip to content

Commit

Permalink
REST API v2 - ping - fix typo in header
Browse files Browse the repository at this point in the history
Signed-off-by: Riyad Preukschas <[email protected]>
  • Loading branch information
riyad committed Nov 25, 2020
1 parent 397e9a9 commit 0ae1221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Ping(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "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)

if r.Method == http.MethodGet {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/server/register_ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *APIServer) registerPingHandlers(r *mux.Router) error {
// Max Podman API Version the server supports.
// Available if service is backed by Podman, therefore may be used to
// determine if talking to Podman engine or another engine
// Libpod-Buildha-Version:
// Libpod-Buildah-Version:
// type: string
// description: |
// Default version of libpod image builder.
Expand Down

0 comments on commit 0ae1221

Please sign in to comment.