Created
July 22, 2014 17:22
-
-
Save rye/aab37f9e90003bcd6a78 to your computer and use it in GitHub Desktop.
This patch to FReCon prints out the request body.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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