Fixed handling of get requests.