Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compojure-api 0.11.0 executes handlers twice #19

Closed
jsyrjala opened this issue May 4, 2014 · 4 comments
Closed

compojure-api 0.11.0 executes handlers twice #19

jsyrjala opened this issue May 4, 2014 · 4 comments

Comments

@jsyrjala
Copy link
Contributor

jsyrjala commented May 4, 2014

Compojure-api executes route handler code twice. Version 0.11.0 has this behavior, version 0.10.4 and earlier works correctly.

See for example:
https://github.com/jsyrjala/compojure-api-examples/blob/double_handler/src/compojure/api/examples/handler.clj#L54

  1. lein ring server
  2. Make 1 POST request to /pizzas path
  3. Look at console, text "POST /pizzas" appears 2 times in log
@ikitommi
Copy link
Member

ikitommi commented May 4, 2014

that's really bad. will look into that.

@jsyrjala
Copy link
Contributor Author

jsyrjala commented May 4, 2014

Version 0.10.4 is latest that works correctly.

ikitommi added a commit that referenced this issue May 4, 2014
@ikitommi
Copy link
Member

ikitommi commented May 4, 2014

0.11.1 should fix this and now also regression tested - (https://github.com/metosin/compojure-api/blob/master/test/compojure/api/core_integration_test.clj#L240-L256).

@ikitommi ikitommi closed this as completed May 7, 2014
@jsyrjala
Copy link
Contributor Author

jsyrjala commented May 7, 2014

Thanks, this works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants