diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-01-04 15:55:30 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-01-04 15:55:30 +0200 |
commit | 4bca54c0bb50b50fc570061b75812fd44a6d3fc3 (patch) | |
tree | 2b56dbe93db6101307dbb9d7bebe269331b9cafc /cookie.go | |
parent | Added WriteGzip and WriteGunzip helper functions (diff) | |
download | fasthttp-4bca54c0bb50b50fc570061b75812fd44a6d3fc3.tar.gz fasthttp-4bca54c0bb50b50fc570061b75812fd44a6d3fc3.tar.bz2 fasthttp-4bca54c0bb50b50fc570061b75812fd44a6d3fc3.zip |
Issue #29: use time.UTC instead of time.LoadLocation, since this call may fail on systems without certain config files
Diffstat (limited to 'cookie.go')
-rw-r--r-- | cookie.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -218,7 +218,7 @@ func (c *Cookie) ParseBytes(src []byte) error { switch { case bytes.Equal(strCookieExpires, kv.key): v := unsafeBytesToStr(kv.value) - exptime, err := time.ParseInLocation(time.RFC1123, v, gmtLocation) + exptime, err := time.ParseInLocation(time.RFC1123, v, time.UTC) if err != nil { return err } |