mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
fix an issue with rate limiting
This commit is contained in:
parent
fe5ce6b688
commit
ef4b2f8005
@ -41,7 +41,7 @@ exp.resetCounter = function() {
|
||||
// callback: the body, response,
|
||||
// and error buffer. get_from helper method is available
|
||||
exp.get_from_options = function(rid, url, options, callback) {
|
||||
var is_session_req = config.sessions_rate_limit && url.startsWith(session_url);
|
||||
var is_session_req = config.server.sessions_rate_limit && url.startsWith(session_url);
|
||||
|
||||
// This is to prevent being blocked by CloudFront for exceeding the rate limit
|
||||
if (is_session_req && req_count() >= config.server.sessions_rate_limit) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user