Created
July 9, 2014 14:24
-
-
Save ubourdon/72466e2d27082c3d479c to your computer and use it in GitHub Desktop.
playframework bug when process GET http request wth json body
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // route : GET /api/myRessource controllers.App.prepare | |
| object App extends Controller { | |
| def prepare = Action(parse.json) { request => | |
| Ok("test") | |
| } | |
| } | |
| /** L'erreur | |
| * | |
| * <h1>Bad request</h1> | |
| * <p id="detail"> | |
| * For request 'GET /api/mandateToSign' [Invalid Json] | |
| * </p> | |
| * / |
et quelle version de Play?
Il me semble qu'Ugo viens de passer à Play 2.3
reproduit chez moi en 2.3.1. Et bien faut faire du POST! ou des Query Binder!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On peux voir la tête du json?