1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
Commit graph

12 commits

Author SHA1 Message Date
Wesley Beary
6455ecbed8
Merge pull request #593 from midhunkrishna/fix/duplicate-subdomain-in-url
Fixes domain name duplication in url
2021-03-17 08:55:26 -05:00
Midhun Krishna
0d5466549e Fixes domain name duplication in url
When a bucket url like bucket.s3.amazonaws.com with bucket name bucket
is present in params passed into request_params method, it
should not dupplicate the subdomain.
current: bucket.bucket.s3.amazonaws.com
fix: bucket.s3.amazonaws.com

Fix test failure due to Hash#slice not present for ruby 2.3
2021-03-13 00:43:15 +05:30
Stan Hu
61892e3ffe Fix handling of lowercased HTTP headers
Some S3 providers (e.g. Ceph) appear to send responses with lowercase
HTTP headers (e.g. content-length vs. Content-Length). This appears to
confuse fog-aws.

The attributes were not being loaded because the aliases did not contain
the lowercased version, and the attributes themselves use underscores
rather than dashes.

To fix this issue, we normalize the headers by fetching the value via
excon's case-insensitive lookup, storing the canonical key, and then
deleting other matches.
2021-02-23 10:23:52 -08:00
Tomer Brisker
5cb6edaa0a Drop Ruby<2.0 support
Users requiring ruby 1.9 or older should use the main fog gem.
2017-10-23 16:49:59 +03:00
Paulo Ribeiro
7cf0de41f8 fix(Tests):Remove debugging 2017-09-14 16:44:51 -03:00
Frederick Cheung
ed58cc3f47 Handle multipart upload of empty files 2017-05-17 17:38:17 +01:00
Esther Villars
f8e795d6d3 Replaces usage of Digest with OpenSSL::Digest for #261
The Digest class has some thread safety issues fixed in

aws/aws-sdk-ruby#529
aws/aws-sdk-ruby#525
ruby/ruby@c02fa39
2016-06-22 22:54:05 -07:00
James Muscat
90b5b5e3bf When not specified, region for a bucket should be DEFAULT_REGION. 2015-12-31 15:29:07 +00:00
Ville Lautanala
8fe5fd9433 Support customer encryption headers in multipart uploads 2015-02-07 17:49:26 +02:00
Frederick Cheung
becea65ad8 [AWS|Storage] signed_url should use v2 signature when aws_signature_version is 2 2015-01-23 21:47:30 +00:00
Josh Lane
dcfd354b8a working tests 2015-01-02 09:42:20 -08:00
Josh Lane
d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00