Made header comparison case insensitive when using WAI driver

This fixes issue #8, using the method suggested in #71