- commit
- 748fe0c4fa73648d4529e42dcd140211192a5f0a
- parent
- fbe0fc4902b9b08ee230509ee72ea44820c72d69
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-06-13 14:35
do not ignore POST if no GET is active messages should still end up in the history
Diffstat
| M | via.go | 8 | +------- |
1 files changed, 1 insertions, 7 deletions
diff --git a/via.go b/via.go
@@ -230,9 +230,7 @@ func post(w http.ResponseWriter, r *http.Request) {
230 230 return
231 231 }
232 232
233 -1 mux.Lock()
234 -1 topic, exists := topics[r.URL.Path]
235 -1 mux.Unlock()
-1 233 topic := getTopic(r.URL.Path)
236 234
237 235 response := make(map[string]int)
238 236 defer func() {
@@ -240,10 +238,6 @@ func post(w http.ResponseWriter, r *http.Request) {
240 238 json.NewEncoder(w).Encode(response)
241 239 }()
242 240
243 -1 if !exists {
244 -1 return
245 -1 }
246 -1
247 241 topic.Lock()
248 242 defer topic.Unlock()
249 243