Skip to content

Fix/rules parsing#51

Open
jzellman wants to merge 2 commits into
demian85:masterfrom
jzellman:fix/rules-parsing
Open

Fix/rules parsing#51
jzellman wants to merge 2 commits into
demian85:masterfrom
jzellman:fix/rules-parsing

Conversation

@jzellman
Copy link
Copy Markdown

2 commits:

fix: use constructed JSON parser on rules responses to properly parse ids

If the request library is provided a JSON body on POST, it will
automatically parse the response using JSON.parse. However, this
will incorrectly decode the id field. This change uses parser.parse
(defaults to JSONBigInt) to ensure that the id is properly decoded.

refactor: pull up headers to an instance variable

Jeff Zellman added 2 commits September 17, 2021 12:46
… ids

If the request library is provided a JSON body on POST, it will
automatically parse the response using JSON.parse. However, this
will incorrectly decode the id field. This change uses parser.parse
(defaults to JSONBigInt) to ensure that the id is properly decoded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant