vladistan / aws4c

Amazon Web Services Library for C
http://code.google.com/p/aws4c/
GNU Lesser General Public License v3.0
13 stars 12 forks source link

sqs_create_queue doesn't work #2

Open soulfly opened 10 years ago

soulfly commented 10 years ago

I found that method sqs_create_queue doesn't work

It's an error in source code

Look at sqs_create_queue method implementation

There is a line snprintf ( resource, sizeof(resource), SQSHost, Req, name, awsKeyID, signature, date );

We need to exchange Req & SQSHost params

The right implementation is snprintf ( resource, sizeof(resource), Req, SQSHost, name, awsKeyID, signature, date );

Please commit to repo this fix

soulfly commented 10 years ago

This is the fix https://github.com/soulfly/aws4c/commit/c58ba55afab42ed095f6abd11206065a3f2b7194