diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-11 11:00:22 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-11 11:00:22 +0200 |
commit | 9735e0127b522eb1f6d0a25822347cac27b91826 (patch) | |
tree | 8fc4b9cc29473cd64dbef36994c19cad39e5a7bf /cookie.go | |
parent | Removed dubious Cache from RequestCtx - use sync.Pool instead (diff) | |
download | fasthttp-9735e0127b522eb1f6d0a25822347cac27b91826.tar.gz fasthttp-9735e0127b522eb1f6d0a25822347cac27b91826.tar.bz2 fasthttp-9735e0127b522eb1f6d0a25822347cac27b91826.zip |
Exported ParseUint, ParseUfloat and AppendHTTPDate, which may be frequently used in http apps
Diffstat (limited to 'cookie.go')
-rw-r--r-- | cookie.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ func (c *Cookie) AppendBytes(dst []byte) []byte { dst = appendQuotedArg(dst, c.Value) if !c.Expire.IsZero() { - c.bufKV.value = c.Expire.In(gmtLocation).AppendFormat(c.bufKV.value[:0], time.RFC1123) + c.bufKV.value = AppendHTTPDate(c.bufKV.value[:0], c.Expire) dst = append(dst, ';', ' ') dst = append(dst, strCookieExpires...) dst = append(dst, '=') |