diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/goamz/goamz/s3/s3test/server.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/goamz/goamz/s3/s3test/server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3test/server.go b/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3test/server.go index 10d36924f..2016b5659 100644 --- a/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3test/server.go +++ b/Godeps/_workspace/src/github.com/goamz/goamz/s3/s3test/server.go @@ -594,6 +594,10 @@ func (objr objectResource) put(a *action) interface{} { obj.checksum = gotHash obj.mtime = time.Now() objr.bucket.objects[objr.name] = obj + + h := a.w.Header() + h.Set("ETag", fmt.Sprintf(`"%s"`, hex.EncodeToString(obj.checksum))) + return nil } |