I'm running 0.8.1, can NOT load jar resources using the method used inhttps://github.com/n8han/pamflet/blob/master/library/src/main/scala/shared.scala
to load resources from jar:
unfiltered.netty.Server.bind(binding)
.chunked(5242880) // allow max 5MB uploads
.resources(new java.net.URL(getClass.getResource("/public/marker"), "."))
.plan(SomePlan)
curl 'http://localhost:port/blah.css'
returns:
< HTTP/1.1 200 OK
< Content-Length: 527
< Content-Type: text/css
< Date: Thu, 29 Oct 2015 07:02:33 GMT
< Cache-Control: private, max-age=60
< Last-Modified: Tue, 17 Sep 2013 10:16:34 GMT
< Connection: keep-alive
< Expires: Thu, 29 Oct 2015 07:03:33 GMT
but the data is never received, the connection just hangs there without finishing
I left a comment here: https://github.com/unfiltered/unfiltered/issues/131
thinking that this might be a regression? apologies for cross posting...
unfiltered.netty.async.Plan