Commit 76f826ca authored by Yoshiharu Hirose's avatar Yoshiharu Hirose

リクエストボディを表示

parent e5da0168
......@@ -60,6 +60,12 @@ object DummyHttpServer {
printf("%s: %s\n", k, v)
}
}
val reader = new BufferedReader(new InputStreamReader(t.getRequestBody))
val body = Iterator.continually(reader.read()).takeWhile(_ != -1).map(_.toChar).mkString("")
if (body.length > 0) {
println("-- Body")
println(body)
}
findFile(new File(t.getRequestURI.getPath).getName, new File(basedir)).orElse {
q.get("Action").flatMap { action => findFile(action + ".xml", new File(basedir)) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment