This patch is looking good. Can you add a test to make sure the Allow header was set properly?