From c5beab777fbc1a2dc6752e89d5000fa47f80ab14 Mon Sep 17 00:00:00 2001 From: Josh Hall-Bachner Date: Fri, 14 Jun 2013 16:15:43 -0700 Subject: [PATCH] Fixed parameter encoding for GET requests. --- Resources/views/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index bb9f0d9..50bb7ab 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -253,7 +253,7 @@ // prepare final parameters var body = {}; - if(bodyFormat == 'json') { + if(bodyFormat == 'json' && method != 'GET') { body = unflattenDict(params); body = JSON.stringify(body); } else {