我使用lein compojure生成一个新的应用程序,并在GET上“/”我收到此错误
警告:oejh.HttpParser:完整[1210806258,-1,m = 345,g = 6144,p = 6144,c = 6144] = {约有10000个十六进制值} {}
我的web.clj包含生成的内容
(defroutes app
(ANY "/repl" {:as req}
(drawbridge req))
(GET "/" []
{:status 200
:headers {"Content-Type" "text/plain"}
:body (pr-str ["Hello" :from 'Heroku])})
(ANY "*" []
(route/not-found (slurp (io/resource "404.html")))))
我的project.clj看起来像这样
(defproject myapp "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://myapp.herokuapp.com"
:license {:name "FIXME: choose"
:url "http://example.com/FIXME"}
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.1"]
[ring/ring-jetty-adapter "1.1.0"]
[ring/ring-devel "1.1.0"]
[ring-basic-authentication "1.0.1"]
[environ "0.2.1"]
[com.cemerick/drawbridge "0.0.6"]]
:min-lein-version "2.0.0"
:plugins [[environ/environ.lein "0.2.1"]]
:hooks [environ.leiningen.hooks]
:profiles {:production {:env {:production true}}})
修改 的
我将响铃更新为1.2.0,并且仍然获得了HttpParser:仍然获得了HttpParser:错误但是更紧凑的错误消息
2013-09-06 12:13:43.418:WARN:oejh.HttpParser:HttpParser Full for
SCEP@186db2c7{l(/127.0.0.1:50446)<->r(/127.0.0.1:8080)
d=true,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}
-{AsyncHttpConnection@1442702c,g=HttpGenerator{s=0,h=-1,b=-1,c=-1}
,p=HttpParser{s=-1,l=5848,c=-3},r=0}