Handle missing HTTP method and version gracefully (trac #4352).