Skip to content

Commit

Permalink
GRAILS-6618 - only clear the params if there are any
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Brown committed Aug 17, 2010
1 parent b65814c commit 0c89b07
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ class ForwardMethod {
}

String forward(HttpServletRequest request, HttpServletResponse response, Map params) {
request.parameterMap?.clear()
def paramMap = request.parameterMap
if(paramMap) {
paramMap.clear()
}

def urlInfo = new ForwardUrlMappingInfo()

GrailsWebRequest webRequest = GrailsWebRequest.lookup(request)
Expand Down

0 comments on commit 0c89b07

Please sign in to comment.