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

Commit

Permalink
Merge pull request #84 from okankocyigit/master
Browse files Browse the repository at this point in the history
fix: enable QuotaExceededContent for ThrottlingFilter
  • Loading branch information
stefanprodan authored Dec 30, 2016
2 parents 6ac655f + 3c44cc8 commit 1ec9dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebApiThrottle/ThrottlingFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public override void OnActionExecuting(HttpActionContext actionContext)
// add status code and retry after x seconds to response
actionContext.Response = QuotaExceededResponse(
actionContext.Request,
string.Format(message, rateLimit, rateLimitPeriod),
content,
QuotaExceededResponseCode,
core.RetryAfterFrom(throttleCounter.Timestamp, rateLimitPeriod));
}
Expand Down

0 comments on commit 1ec9dd2

Please sign in to comment.