-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from go-resty/release-prep-v2.2.0
- Loading branch information
Showing
19 changed files
with
29 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015-2019 Jeevanandam M., https://myjeeva.com <[email protected]> | ||
Copyright (c) 2015-2020 Jeevanandam M., https://myjeeva.com <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]) | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]) | ||
// 2016 Andrew Grigorev (https://github.com/ei-grad) | ||
// All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M. ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M. ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), 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") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
@@ -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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved. | ||
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved. | ||
// resty source code and usage is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
|