Request.method should be case-insensitive

Fix #647