kr/s3 — pull request #17 by rafikk (2013-09-18 23:28:19+00:00)
Title: Enable signing when request.URL has been manually set

I recently came across an issue with encoding + and ? in the path component of S3 files. See this thread on the mailing list for context: https://groups.google.com/forum/#!topic/golang-nuts/CbL27WPZavY

I could get around the issue by manually setting request.URL on the request object. Doing so doesn't set request.Host which causes signing to fail. This diff pulls the host from request.URL. This is consistent with how the other url portions are accessed, e.g. `r.URL.RawQuery`.