summaryrefslogtreecommitdiff
path: root/pkg/helper/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/helper/helper.go')
-rw-r--r--pkg/helper/helper.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/helper/helper.go b/pkg/helper/helper.go
index 691fc6e..006d23b 100644
--- a/pkg/helper/helper.go
+++ b/pkg/helper/helper.go
@@ -148,17 +148,17 @@ func firewallStopHandler(w http.ResponseWriter, r *http.Request) {
func firewallIsUpHandler(w http.ResponseWriter, r *http.Request) {
if firewallIsUp() {
- w.Write([]byte("true"))
w.WriteHeader(http.StatusOK)
+ w.Write([]byte("true"))
} else {
- w.Write([]byte("false"))
w.WriteHeader(http.StatusNoContent)
+ w.Write([]byte("false"))
}
}
func versionHandler(w http.ResponseWriter, r *http.Request) {
- w.Write([]byte(AppName + "/" + Version + "\n"))
w.WriteHeader(http.StatusOK)
+ w.Write([]byte(AppName + "/" + Version + "\n"))
}
func getArgs(r *http.Request) ([]string, error) {