-
Notifications
You must be signed in to change notification settings - Fork 219
Trader Fixes #1525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Trader Fixes #1525
Conversation
| result = result .. "/" .. realm | ||
| end | ||
| result = result .. "/" .. league:gsub(" ", "+") | ||
| local encodedLeague = league:gsub("[^%w%-%.%_%~]", function(c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to use our existing urlEncode function here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason. Just add gsub(" ", "+").
| policies[policyName].retryAfter = os.time() + retryAfter | ||
| end | ||
| local ruleNames = {} | ||
| for match in headers["x-rate-limit-rules"]:gmatch("[^,]+") do | ||
| ruleNames[#ruleNames+1] = match:lower() | ||
| local rulesHeader = headers["x-rate-limit-rules"] | ||
| if rulesHeader and rulesHeader ~= "" then | ||
| for match in rulesHeader:gmatch("[^,]+") do | ||
| ruleNames[#ruleNames+1] = match:lower() | ||
| end | ||
| end | ||
| for _, ruleName in pairs(ruleNames) do | ||
| policies[policyName][ruleName] = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, these should be TAB indented (some more near line 249 too).
Change
Primary fix
Various fixes made along the way
Test cases
Recommendations