Permalink
Browse files

Merge pull request #1064 from madebymany/master

Change SQS Endpoints to sqs.<region>.amazonaws.com
  • Loading branch information...
dylanegan committed Jul 30, 2012
2 parents 7f5d903 + fedd31d commit 90defa09aad2dc4685e7d01979eec914dd5a85e0
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/fog/aws/sqs.rb
View
@@ -83,12 +83,8 @@ def initialize(options={})
setup_credentials(options)
@connection_options = options[:connection_options] || {}
options[:region] ||= 'us-east-1'
- @host = options[:host] || case options[:region]
- when 'us-east-1'
- 'queue.amazonaws.com'
- else
- "#{options[:region]}.queue.amazonaws.com"
- end
+ @host = options[:host] || "sqs.#{options[:region]}.amazonaws.com"
+
@path = options[:path] || '/'
@persistent = options[:persistent] || false
@port = options[:port] || 443

0 comments on commit 90defa0

Please sign in to comment.