aboutsummaryrefslogtreecommitdiff
path: root/cookie.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-11 11:00:22 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-11 11:00:22 +0200
commit9735e0127b522eb1f6d0a25822347cac27b91826 (patch)
tree8fc4b9cc29473cd64dbef36994c19cad39e5a7bf /cookie.go
parentRemoved dubious Cache from RequestCtx - use sync.Pool instead (diff)
downloadfasthttp-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cookie.go b/cookie.go
index e18ec2e..888db4d 100644
--- a/cookie.go
+++ b/cookie.go
@@ -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, '=')