You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Response#ratelimit is not working as expected. It just returns nil every time. I believe this is because of a header capitalization mismatch between what that method expects and what is actually returned.
Code Snippet
sendgrid_client=SendGrid::API.new(api_key: SENDGRID_API_KEY).clientdata={automatic_security: true,custom_spf: false,default: false,domain: "my-test-domain.com",subdomain: "abc"}.stringify_keysresponse=sendgrid_client.whitelabel.domains.post(request_body: data)# This returns nilresponse.headers["X-RateLimit-Limit"]# This returns ["1"]response.headers["x-ratelimit-limit"]# This returns nilresponse.ratelimit
Technical details:
ruby-http-client version: 3.5.1
ruby version: 2.5
The text was updated successfully, but these errors were encountered:
Issue Summary
Response#ratelimit
is not working as expected. It just returnsnil
every time. I believe this is because of a header capitalization mismatch between what that method expects and what is actually returned.Code Snippet
Technical details:
The text was updated successfully, but these errors were encountered: