aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-05-04 11:32:20 +0200
committerStefan Majewsky <majewsky@gmx.net>2018-05-04 11:32:20 +0200
commitb94608f789ad89dcecd4e02328e79787d4342a94 (patch)
tree4aae8eabf181b5990a1ed2ef75409b4ab8396b61
parentbc7e256d490a179c5636a5cbdfae12ec1e2b08dc (diff)
downloadgo-schwift-b94608f789ad89dcecd4e02328e79787d4342a94.tar.gz
fix formatting of X-Delete-At header
-rw-r--r--field_time.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/field_time.go b/field_time.go
index d367f68..d6ec447 100644
--- a/field_time.go
+++ b/field_time.go
@@ -19,7 +19,6 @@
package schwift
import (
- "fmt"
"net/http"
"strconv"
"time"
@@ -119,7 +118,7 @@ func (f FieldUnixTime) Get() time.Time {
//Set writes a new value for this header into the corresponding headers
//instance.
func (f FieldUnixTime) Set(value time.Time) {
- f.h.Set(f.k, fmt.Sprintf("%.9f", float64(value.UnixNano())/1e9))
+ f.h.Set(f.k, strconv.FormatUint(uint64(value.UnixNano())/1e9, 10))
}
//Del removes this key from the original headers instance, so that the key will