boto/boto — pull request #1025 by jamesls (2012-09-28 16:53:34+00:00)
Title: Bug fix: Remove consecutive spaces in header values

When computing the canonical headers for use in sigv4,
an consecutive whitespace should be condensed to a single
space, e.g. "foobar" should be "foobar".
Otherwise, the request won't be signed correctly.

I've included unit tests for the canonical header method
of the sigv4 signer.
I've also included an integration test for glacier which
demonstrates this bug.