From 47cd9ca809d3a0061b3ec48c5347916d3955007c Mon Sep 17 00:00:00 2001
From: Jeevanandam M
Date: Sun, 23 Feb 2020 19:40:36 -0800
Subject: [PATCH 1/2] version bump go mod update for the release v2.2.0
---
go.mod | 4 +++-
resty.go | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/go.mod b/go.mod
index b2b881ac..0ecb0cf5 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,5 @@
module github.com/go-resty/resty/v2
-require golang.org/x/net v0.0.0-20190628185345-da137c7871d7
+require golang.org/x/net v0.0.0-20200222125558-5a598a2470a0
+
+go 1.11
diff --git a/resty.go b/resty.go
index df2489a5..a2067dc8 100644
--- a/resty.go
+++ b/resty.go
@@ -14,7 +14,7 @@ import (
)
// Version # of resty
-const Version = "2.1.0"
+const Version = "2.2.0"
// New method creates a new Resty client.
func New() *Client {
From 60a1ad28294628fb65d2d3653e3ba78c21d8cae6 Mon Sep 17 00:00:00 2001
From: Jeevanandam M
Date: Sun, 23 Feb 2020 19:43:27 -0800
Subject: [PATCH 2/2] readme and year update for release v2.2.0 [ci skip]
---
LICENSE | 2 +-
README.md | 6 +++---
client.go | 2 +-
client_test.go | 2 +-
context_test.go | 2 +-
example_test.go | 2 +-
middleware.go | 2 +-
redirect.go | 2 +-
request.go | 2 +-
request_test.go | 12 ++++++------
response.go | 2 +-
resty.go | 2 +-
resty_test.go | 2 +-
retry.go | 2 +-
retry_test.go | 2 +-
trace.go | 2 +-
util.go | 2 +-
util_test.go | 2 +-
18 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/LICENSE b/LICENSE
index 5cf0a2f9..c9ae93e3 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2015-2019 Jeevanandam M., https://myjeeva.com
+Copyright (c) 2015-2020 Jeevanandam M., https://myjeeva.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 073eb2dd..5ddf2948 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
Features section describes in detail about Resty capabilities
-
+
Resty Communication Channels
@@ -13,7 +13,7 @@
## News
- * v2.1.0 [released](https://github.com/go-resty/resty/releases/tag/v2.1.0) and tagged on Oct 10, 2019.
+ * v2.2.0 [released](https://github.com/go-resty/resty/releases/tag/v2.2.0) and tagged on Feb 23, 2020.
* v2.0.0 [released](https://github.com/go-resty/resty/releases/tag/v2.0.0) and tagged on Jul 16, 2019.
* v1.12.0 [released](https://github.com/go-resty/resty/releases/tag/v1.12.0) and tagged on Feb 27, 2019.
* v1.0 released and tagged on Sep 25, 2017. - Resty's first version was released on Sep 15, 2015 then it grew gradually as a very handy and helpful library. Its been a two years since first release. I'm very thankful to Resty users and its [contributors](https://github.com/go-resty/resty/graphs/contributors).
@@ -104,7 +104,7 @@ Resty author also published following projects for Go Community.
```bash
# Go Modules
-require github.com/go-resty/resty/v2 v2.1.0
+require github.com/go-resty/resty/v2 v2.2.0
```
## Usage
diff --git a/client.go b/client.go
index e51bd079..3ba9850a 100644
--- a/client.go
+++ b/client.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/client_test.go b/client_test.go
index 36094e0e..2c3c1ab6 100644
--- a/client_test.go
+++ b/client_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/context_test.go b/context_test.go
index 5b69506d..313e4b38 100644
--- a/context_test.go
+++ b/context_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com)
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com)
// 2016 Andrew Grigorev (https://github.com/ei-grad)
// All rights reserved.
// resty source code and usage is governed by a MIT style
diff --git a/example_test.go b/example_test.go
index 587540aa..fd519487 100644
--- a/example_test.go
+++ b/example_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M. (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M. (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/middleware.go b/middleware.go
index 4d5c41f8..d0006457 100644
--- a/middleware.go
+++ b/middleware.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/redirect.go b/redirect.go
index afbe13e8..2976b7c5 100644
--- a/redirect.go
+++ b/redirect.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/request.go b/request.go
index 32481ea2..7c707081 100644
--- a/request.go
+++ b/request.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/request_test.go b/request_test.go
index 2cb3c0fd..99079202 100644
--- a/request_test.go
+++ b/request_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
@@ -1611,8 +1611,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
resp, err = New().SetDebug(true).outputLogTo(output).SetDebugBodyLimit(debugBodySizeLimit).R().
SetFormData(map[string]string{
"first_name": "Alex",
- "last_name": strings.Repeat("C", int(debugBodySizeLimit)),
- "zip_code": "00001"}).
+ "last_name": strings.Repeat("C", int(debugBodySizeLimit)),
+ "zip_code": "00001"}).
SetBasicAuth("myuser", "mypass").
Post(formTs.URL + "/profile")
assertNil(t, err)
@@ -1624,8 +1624,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
resp, err = New().SetDebug(true).outputLogTo(output).SetDebugBodyLimit(debugBodySizeLimit).R().
SetFormData(map[string]string{
"first_name": "Alex",
- "last_name": "C",
- "zip_code": "00001"}).
+ "last_name": "C",
+ "zip_code": "00001"}).
SetBasicAuth("myuser", "mypass").
Post(formTs.URL + "/profile")
assertNil(t, err)
@@ -1637,7 +1637,7 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
resp, err = New().SetDebug(true).outputLogTo(output).SetDebugBodyLimit(debugBodySizeLimit).R().
SetBody(`{
"first_name": "Alex",
- "last_name": "` + strings.Repeat("C", int(debugBodySizeLimit)) + `C",
+ "last_name": "`+strings.Repeat("C", int(debugBodySizeLimit))+`C",
"zip_code": "00001"}`).
SetBasicAuth("myuser", "mypass").
Post(formTs.URL + "/profile")
diff --git a/response.go b/response.go
index 673aeeba..d8d14137 100644
--- a/response.go
+++ b/response.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/resty.go b/resty.go
index a2067dc8..af829c3e 100644
--- a/resty.go
+++ b/resty.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/resty_test.go b/resty_test.go
index 3569646d..fc0165cf 100644
--- a/resty_test.go
+++ b/resty_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/retry.go b/retry.go
index 5f34cb6f..ac8b726f 100644
--- a/retry.go
+++ b/retry.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/retry_test.go b/retry_test.go
index e5df0270..b7276cad 100644
--- a/retry_test.go
+++ b/retry_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/trace.go b/trace.go
index 862a3a06..130ff9b7 100644
--- a/trace.go
+++ b/trace.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/util.go b/util.go
index 81431411..0920f60e 100644
--- a/util.go
+++ b/util.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
diff --git a/util_test.go b/util_test.go
index 7967081b..709d839b 100644
--- a/util_test.go
+++ b/util_test.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2019 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
+// Copyright (c) 2015-2020 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.