Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 3c44cc8

Browse files
author
okankocyigit
committed
fix: enable QuotaExceededContent for ThrottlingFilter
1 parent 6ac655f commit 3c44cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebApiThrottle/ThrottlingFilter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public override void OnActionExecuting(HttpActionContext actionContext)
210210
// add status code and retry after x seconds to response
211211
actionContext.Response = QuotaExceededResponse(
212212
actionContext.Request,
213-
string.Format(message, rateLimit, rateLimitPeriod),
213+
content,
214214
QuotaExceededResponseCode,
215215
core.RetryAfterFrom(throttleCounter.Timestamp, rateLimitPeriod));
216216
}

0 commit comments

Comments
 (0)