Skip to content

Commit

Permalink
Merge pull request #8487 from riyad/fix-ping-typo
Browse files Browse the repository at this point in the history
REST API v2 - ping - fix typo in header
  • Loading branch information
openshift-merge-robot authored Nov 26, 2020
2 parents 201b0ac + 0ae1221 commit ad24392
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 ad24392

Please sign in to comment.