spooder 4.4.4 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api.ts +1 -1
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -712,7 +712,7 @@ export function serve(port: number) {
|
|
|
712
712
|
const request_time = Date.now() - request_start;
|
|
713
713
|
|
|
714
714
|
const is_known_slow = slow_requests.has(req);
|
|
715
|
-
if (slow_request_callback !== null && request_time > slow_request_threshold && is_known_slow)
|
|
715
|
+
if (slow_request_callback !== null && request_time > slow_request_threshold && !is_known_slow)
|
|
716
716
|
slow_request_callback(req, request_time, url);
|
|
717
717
|
|
|
718
718
|
if (is_known_slow)
|