How to access the raw unaltered http POST data in Rails?

后端 未结 1 633
执笔经年
执笔经年 2020-12-17 08:32

How can I access the original POST message in a controller and send it back unaltered to its original sender?

相关标签:
1条回答
  • 2020-12-17 09:32

    You can use ActionDispatch::Request#raw_post to get the unaltered POST data:

    request.raw_post
    
    0 讨论(0)
提交回复
热议问题