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

Commit 1ec9dd2

Browse files
authored
Merge pull request #84 from okankocyigit/master
fix: enable QuotaExceededContent for ThrottlingFilter
2 parents 6ac655f + 3c44cc8 commit 1ec9dd2

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)