Skip to content
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

remove data encoding to json #9

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

privateip
Copy link
Member

This commit removes the logic to encode the payload before sending the request. This library should not attempt to infer the data type and simply add the data to the request exactly as it was passed to the function. It is the responsibility of the upstream function to call the function with the appropriately encoded data.

This commit removes the logic to encode the payload before sending the
request.  This library should not attempt to infer the data type and
simply add the data to the request exactly as it was passed to the
function.  It is the responsibility of the upstream function to call the
function with the appropriately encoded data.

This commit will now check if the value of data is type of bytes and
raise an exception if it is not
@privateip privateip force-pushed the remove-json-encoding branch from 27b00cb to 0e89cf3 Compare December 18, 2024 12:07
@privateip privateip merged commit 59a9fdb into itential:devel Dec 18, 2024
1 check passed
@privateip privateip mentioned this pull request Dec 18, 2024
@privateip privateip deleted the remove-json-encoding branch December 18, 2024 12:35
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