diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-01-13 18:17:03 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-01-13 18:17:03 +0200 |
commit | 485098e5dc90f6cab18e62826e4b50f82286139b (patch) | |
tree | 7f02bc030c0ded59dee236d789b27f5050684d7b /cookie.go | |
parent | typo fix (diff) | |
download | fasthttp-485098e5dc90f6cab18e62826e4b50f82286139b.tar.gz fasthttp-485098e5dc90f6cab18e62826e4b50f82286139b.tar.bz2 fasthttp-485098e5dc90f6cab18e62826e4b50f82286139b.zip |
Exported AppendQuotedArg
Diffstat (limited to 'cookie.go')
-rw-r--r-- | cookie.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -146,10 +146,10 @@ func (c *Cookie) Reset() { // the extended dst. func (c *Cookie) AppendBytes(dst []byte) []byte { if len(c.key) > 0 { - dst = appendQuotedArg(dst, c.key) + dst = AppendQuotedArg(dst, c.key) dst = append(dst, '=') } - dst = appendQuotedArg(dst, c.value) + dst = AppendQuotedArg(dst, c.value) if !c.expire.IsZero() { c.bufKV.value = AppendHTTPDate(c.bufKV.value[:0], c.expire) @@ -251,10 +251,10 @@ func appendRequestCookieBytes(dst []byte, cookies []argsKV) []byte { for i, n := 0, len(cookies); i < n; i++ { kv := &cookies[i] if len(kv.key) > 0 { - dst = appendQuotedArg(dst, kv.key) + dst = AppendQuotedArg(dst, kv.key) dst = append(dst, '=') } - dst = appendQuotedArg(dst, kv.value) + dst = AppendQuotedArg(dst, kv.value) if i+1 < n { dst = append(dst, ';', ' ') } |