title: Authorization header is invalid -- one and only one ' ' (space) required - Amazon S3
body: <p>Trying to <code>precompile</code> my assets in Rails app and <code>sync</code> with <code>Amazon S3 Storage</code>:</p>
  
  <p>with this mesage: </p>
  
  <p>Any feedback appreciated: </p>
  
  <pre><code>Expected(200) &lt;=&gt; Actual(400 Bad Request)
  response =&gt; #&lt;Excon::Response:0x00000007c45a98 @data={:body=&gt;"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;Error&gt;&lt;Code&gt;InvalidArgument&lt;/Code&gt;&lt;Message&gt;Authorization header is invalid -- one and only one ' ' (space) required&lt;/Message&gt;&lt;ArgumentValue&gt;AWS [\"AKIAINSIQYCZLWYSROWQ\", \"7RAxhY5nLkbACICMqjDlee5pCaEhf4LKgSpJ+R9k\"]:LakbTXVMX6I72MViNie/fe+79qU=&lt;/ArgumentValue&gt;&lt;ArgumentName&gt;Authorization&lt;/ArgumentName&gt;&lt;RequestId&gt;250C76936044E6D5&lt;/RequestId&gt;&lt;HostId&gt;j2jK/dv0xTnNddtSFHuVicGv5wWjXl4zXuhOyPcO6+2WWlAYWSkn0CHPwdtnOPet&lt;/HostId&gt;&lt;/Error&gt;", :headers=&gt;{"x-amz-request-id"=&gt;"250C76936044E6D5", "x-amz-id-2"=&gt;"j2jK/dv0xTnNddtSFHuVicGv5wWjXl4zXuhOyPcO6+2WWlAYWSkn0CHPwdtnOPet", "Content-Type"=&gt;"application/xml", "Transfer-Encoding"=&gt;"chunked", "Date"=&gt;"Tue, 20 Aug 2013 13:28:36 GMT", "Connection"=&gt;"close", "Server"=&gt;"AmazonS3"}, :status=&gt;400, :remote_ip=&gt;"205.251.235.165"}, @body="&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;Error&gt;&lt;Code&gt;InvalidArgument&lt;/Code&gt;&lt;Message&gt;Authorization header is invalid -- one and only one ' ' (space) required&lt;/Message&gt;&lt;ArgumentValue&gt;AWS [\"AKIAINSIQYCZLWYSROWQ\", \"7RAxhY5nLkbACICMqjDlee5pCaEhf4LKgSpJ+R9k\"]:LakbTXVMX6I72MViNie/fe+79qU=&lt;/ArgumentValue&gt;&lt;ArgumentName&gt;Authorization&lt;/ArgumentName&gt;&lt;RequestId&gt;250C76936044E6D5&lt;/RequestId&gt;&lt;HostId&gt;j2jK/dv0xTnNddtSFHuVicGv5wWjXl4zXuhOyPcO6+2WWlAYWSkn0CHPwdtnOPet&lt;/HostId&gt;&lt;/Error&gt;", @headers={"x-amz-request-id"=&gt;"250C76936044E6D5", "x-amz-id-2"=&gt;"j2jK/dv0xTnNddtSFHuVicGv5wWjXl4zXuhOyPcO6+2WWlAYWSkn0CHPwdtnOPet", "Content-Type"=&gt;"application/xml", "Transfer-Encoding"=&gt;"chunked", "Date"=&gt;"Tue, 20 Aug 2013 13:28:36 GMT", "Connection"=&gt;"close", "Server"=&gt;"AmazonS3"}, @status=400, @remote_ip="205.251.235.165"&gt;
  </code></pre>