support wai 3.0 (fixes #15).