When header['Accept'] is nil. Should not raise error for split method. use try instead.