Permalink
Browse files

pprint'ing request maps to console as well as showing in html response

  • Loading branch information...
1 parent 800cc60 commit b2201d2cb2f82ea85f911f5fa374a29309bf3b2a @mmcgrana committed Oct 3, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 ring-devel/src/ring/handler/dump.clj
View
5 ring-devel/src/ring/handler/dump.clj
@@ -3,7 +3,8 @@
(:use (hiccup core page-helpers)
[clojure.contrib.def :only (defvar-)]
ring.util.response)
- (:require (clojure [set :as set])))
+ (:require (clojure [set :as set]))
+ (:require [clojure.pprint :as pprint]))
(declare css)
@@ -44,6 +45,8 @@
"Returns a response tuple corresponding to an HTML dump of the request
req as it was recieved by this app."
[req]
+ (pprint/pprint req)
+ (println)
(-> (response (template req))
(status 200)
(content-type "text/html")))

0 comments on commit b2201d2

Please sign in to comment.