We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, When I send a POST request with a json file in a given path, json file is parsed as hash, that causes problem at RestClient side.
You need to modify @Body with @body.to_json , otherwise it returns 415 as response code
when 'json' @body = JSON.parse File.read(path) **@body = @body.to_json** else
The text was updated successfully, but these errors were encountered:
Hi wanna send a PR? I'll merge soon as I can :)
Sorry, something went wrong.
Also encountering this same issue. You can also fix it by:
@Body = JSON.dump(JSON.parse File.read(path))
Update steps.rb to resolve issues hidroh#8 and hidroh#19
67a9472
-Add a custom step to clear cache on demand from feature file -POST with json file
No branches or pull requests
Hi,
When I send a POST request with a json file in a given path, json file is parsed as hash, that causes problem at RestClient side.
You need to modify @Body with @body.to_json , otherwise it returns 415 as response code
when 'json' @body = JSON.parse File.read(path) **@body = @body.to_json** else
The text was updated successfully, but these errors were encountered: