From 79db49d29c5825d8c7adcea6f6c63446903c17ef Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Mon, 24 Feb 2020 22:10:36 +0100 Subject: [PATCH] Return 201 header by default --- http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http.go b/http.go index 24f5dc5..07bcc8a 100644 --- a/http.go +++ b/http.go @@ -89,6 +89,8 @@ func Serve() { } } } + // Return 201 + w.WriteHeader(http.StatusCreated) } // Add the handlers to a HTTP server