diff --git a/lib/middlewares/responseType.js b/lib/middlewares/responseType.js
index <HASH>..<HASH> 100644
--- a/lib/middlewares/responseType.js
+++ b/lib/middlewares/responseType.js
@@ -13,8 +13,8 @@ function parseResponseType(req) {
     }
   }
 
-  if (req.params && req.params.responseType) {
-    return req.params.responseType.toLowerCase();
+  if (req.query && req.query.responseType) {
+    return req.query.responseType.toLowerCase();
   }
 
   return 'html';
update responseType to change with query params