Fork me on GitHub
#yada
<
2017-04-09
>
malcolmsparks09:04:43

I wouldn't expect that. Are you using a subresource?

danielcompton18:04:50

Nope, I can reproduce this in a handler off the root of my routes:

["/test"
     (yada/resource
       {:id      :test
        :methods {:get
                  {:produces "text/html"
                   :response (fn [ctx]
                               (html
                                 [:body
                                  [:pre (with-out-str
                                          (pprint/pprint ctx))]]))}}})]

malcolmsparks19:04:44

Thanks. Let me investigate

danielcompton21:04:49

My project is based on edge if that's helpful

danielcompton21:04:15

Is there a way to log requests as they are received, before any logic is applied to them? I'm trying to create an interface against a client where I don't have a clear idea of the spec. I'm getting a 415 Unsupported Media Type response when I try to upload a file with the client, but I don't know what media type is being sent, and the request is aborted by Yada before it gets to my handler.

danielcompton21:04:18

I tried turning the logging right down to TRACE, but I still couldn't see anything