fix bug: Basic authentication header 'Basic ' is case insensitive