improve get_request_param function
Merge pull request #528 from ahilles107/get_request_param

improve get_request_param function