Fork me on GitHub
#liberator
<
2015-10-18
>
ordnungswidrig19:10:23

@jonas: this might be a bug.

jonas19:10:03

yeah, if it’s not on purpose I guess it’s a bug. I guess my second snippet would be a solution?

jonas19:10:00

Should I open a PR? I guess it might break some code if someone is relying on request being available?

ordnungswidrig19:10:55

yes, that would be nice.

ordnungswidrig19:10:25

and please provide a test case and an entry to CHANGES.markdown which would make my life easier simple_smile

jonas19:10:44

ok. Not quite sure how to test this? Check that request is not defined inside defresource?

ordnungswidrig19:10:32

check that using „request“ as a parameter name to defresource works.

ordnungswidrig19:10:14

(liberator.core/defresource xxx [request] :handle-ok (str request))
((xxx "test") {:request-method :get})
;; => {:status 200, :headers {"Content-Type" "text/plain;charset=UTF-8"}, :body "{:request-method :get}“}

ordnungswidrig19:10:52

this should maybe return „test“ instead.

jonas19:10:41

ok. I will add such a test

jonas19:10:24

I opened the PR: https://github.com/clojure-liberator/liberator/pull/234 Let me know if something is wrong/missing

ordnungswidrig20:10:16

that was quick!

ordnungswidrig20:10:57

Thank! I did some bikeshedding and can merge when you updated the pr.

jonas20:10:54

Cool! Do you want squashed commits or can I just add the changes as new commits?

ordnungswidrig20:10:58

Yes, squashed, please for these minor changes.

ordnungswidrig20:10:32

Fine! You could have force pushed to your existing branch. No need open a new PR.

jonas20:10:37

Yeap, I should have done that.

jonas20:10:43

@ordnungswidrig: Thanks for the merge and thanks for liberator!