When making a HEAD request, use the bucket vhost.
commit18d9fa3f1d1d8850876331ca6a6f25a9ff2d0a4c
authorZach Beane <xach@xach.com>
Wed, 3 Dec 2014 17:03:33 +0000 (3 12:03 -0500)
committerZach Beane <xach@xach.com>
Wed, 3 Dec 2014 17:03:33 +0000 (3 12:03 -0500)
tree70ce23ff01b528280f9314dd35cca233555346a8
parent756f672fa9ec1bebca2f6fcabe717197a984be40
When making a HEAD request, use the bucket vhost.

https://forums.aws.amazon.com/thread.jspa?messageID=340398 explains
why: a HEAD request to a location-specific bucket will get a 301
redirect that doesn't include enough info to actually redirect. The
intent is to prompt the client to use the vhost. So use a vhost
pre-emptively on HEAD requests.
request.lisp