Method: BitBucket::Request::Jsonize#has_body?
- Defined in:
- lib/bitbucket_rest_api/request/jsonize.rb
#has_body?(env) ⇒ Boolean
Don’t encode bodies in string form
35 36 37 |
# File 'lib/bitbucket_rest_api/request/jsonize.rb', line 35 def has_body?(env) body = env[:body] and !(body.respond_to?(:to_str) and body.empty?) end |