kriswallsmith/Buzz — pull request #84 by Seldaek (2012-06-27 13:19:55+00:00)
Title: Add safeguard against misuse of the headers array

I'm pretty sure it's not the first time I do the stupid mistake of sending `array('Header' => 'value');` and waste time debugging what the heck is happening. This would help. Alternatively we could do this, but it's maybe less BC (I mean, this isn't either, but at least this will fail loudly and not create more debugging hail):

if (!is_int($key)) {
$request->addHeader($key.': '.$header);
}