Skip to content

Instantly share code, notes, and snippets.

@rye
Created July 22, 2014 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rye/aab37f9e90003bcd6a78 to your computer and use it in GitHub Desktop.
Save rye/aab37f9e90003bcd6a78 to your computer and use it in GitHub Desktop.
This patch to FReCon prints out the request body.
diff --git a/lib/frecon/server.rb b/lib/frecon/server.rb
index 5a524de..06b6435 100644
--- a/lib/frecon/server.rb
+++ b/lib/frecon/server.rb
@@ -13,6 +13,8 @@ module FReCon
before do
content_type "application/json"
+
+ p request.body.read.to_s
end
def self.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment