summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--post.go6
-rw-r--r--query.go5
2 files changed, 6 insertions, 5 deletions
diff --git a/post.go b/post.go
index 4078cf6..103c254 100644
--- a/post.go
+++ b/post.go
@@ -2,6 +2,7 @@ package main
 
 import (
 	"fmt"
+	"log"
 	"net/http"
 
 	"github.com/getwtxt/registry"
@@ -58,5 +59,8 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 	}
 
 	log200(r)
-	_, _ = w.Write([]byte(fmt.Sprintf("200 OK\n")))
+	_, err = w.Write([]byte(fmt.Sprintf("200 OK\n")))
+	if err != nil {
+		log.Printf("%v\n", err)
+	}
 }
diff --git a/query.go b/query.go
index ac46223..63e203c 100644
--- a/query.go
+++ b/query.go
@@ -109,9 +109,6 @@ func apiEndpointQuery(w http.ResponseWriter, r *http.Request) error {
 
 	w.Header().Set("Content-Type", txtutf8)
 	_, err = w.Write(data)
-	if err != nil {
-		return err
-	}
 
-	return nil
+	return err
 }
74'>74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157