diff --git a/lib/jekyll-admin/server.rb b/lib/jekyll-admin/server.rb index 36dd463c..586236a3 100644 --- a/lib/jekyll-admin/server.rb +++ b/lib/jekyll-admin/server.rb @@ -81,8 +81,9 @@ def document_body def request_body @request_body ||= begin - request.body.rewind - request.body.read + rq_bdy = request.body + rq_bdy.rewind if rq_bdy.respond_to?(:rewind) + rq_bdy.read end end