[FIX] Fixed incorrect cgi variable for getting the correct http method
on the REST endpoint.