akamai-edgegrid 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/akamai/edgegrid.rb +1 -1
- metadata +1 -1
data/lib/akamai/edgegrid.rb
CHANGED
@@ -104,7 +104,7 @@ module Akamai #:nodoc:
|
|
104
104
|
|
105
105
|
# Returns a hash of the HTTP POST body
|
106
106
|
def make_content_hash(request)
|
107
|
-
if request.method == 'POST' and request.
|
107
|
+
if request.method == 'POST' and request.body and request.body.length > 0
|
108
108
|
body = request.body
|
109
109
|
if body.length > @max_body
|
110
110
|
@log.debug("data length #{body.length} is larger than maximum #{@max_body}")
|