]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/util/xs_interceptor/xs_interceptor.go
Sanitize the scope at the endpoint level.
[xonotic/xonstat.git] / xonstat / util / xs_interceptor / xs_interceptor.go
index ddc8af80488c738c85cc9f9600155151db1bc1fa..a968c2c7ecd12ecd75ac9cd1b68b6a062c61f471 100644 (file)
@@ -235,7 +235,9 @@ func resubmit(url string) {
 \r
                fmt.Printf("Request #%d: %s\n", request_id, res.Status)\r
 \r
-               if res.StatusCode < 500 {\r
+    // undeliverables requests will still live in the database,\r
+    // but we can clear out the 200 ones for sure\r
+               if res.StatusCode == 200 {\r
                        successfulRequests = append(successfulRequests, request_id)\r
                }\r
        }\r