akamai-edgegrid 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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}")
|