From 7818f6b094a0122d143dcc13a23b93b33136ee45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Wed, 19 Aug 2020 23:17:34 +0200 Subject: [PATCH] fix: return created status code for heartbeats (resolve #43) --- routes/heartbeat.go | 2 +- version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/heartbeat.go b/routes/heartbeat.go index 4fe965d..9de26de 100644 --- a/routes/heartbeat.go +++ b/routes/heartbeat.go @@ -55,5 +55,5 @@ func (h *HeartbeatHandler) ApiPost(w http.ResponseWriter, r *http.Request) { return } - w.WriteHeader(http.StatusOK) + w.WriteHeader(http.StatusCreated) } diff --git a/version.txt b/version.txt index 081af9a..0a182f2 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.7.1 \ No newline at end of file +1.7.2 \ No newline at end of file