fix for https params

I saw the problem that @chrismatthieu was talking about and this seemed to fix it and I'm able to get params from https POST requests.