kr / s3

Go package for Amazon’s S3 API
http://godoc.org/github.com/kr/s3
MIT License
107 stars 34 forks source link

Check that ETag is long enough to slice #27

Closed athomason closed 9 years ago

athomason commented 10 years ago

Slicing the ETag header to remove the quotes that typically surround the content will cause a panic if the string is less than 2 bytes long.

Fixes #26.

athomason commented 9 years ago

Changed, please take another look.

kr commented 9 years ago

Thanks so much!