From dad91fa01835b3cad0b5cb8d42952996c643616f Mon Sep 17 00:00:00 2001 From: VenkateshRavula Date: Tue, 30 Jun 2020 17:27:13 +0530 Subject: [PATCH] fixed issue 141 --- CHANGELOG.md | 4 ++++ rest/netutil.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e56e6ddc..fbd9cb24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +# [v1.4.1] (unreleased) +#### Bug fixes & Enhancements: +- [#141] (https://github.com/HewlettPackard/oneview-golang/issues/141) Query Parameter retains in the next endpoint call + # [v1.4.0] (2020-05-27) ### Notes - Added support for loginMsgAck attribute in login session POST request. diff --git a/rest/netutil.go b/rest/netutil.go index 65ee09b4..737f33b6 100644 --- a/rest/netutil.go +++ b/rest/netutil.go @@ -173,6 +173,9 @@ func (c *Client) RestAPICall(method Method, path string, options interface{}) ([ log.Debugf("ERROR --> %+v\n", err) // DEBUGGING WHILE WE WORK + // RESET QUERY PARAMETERS AFTER EVERY CALL + c.SetQueryString(nil) + data, err := ioutil.ReadAll(resp.Body) if !c.isOkStatus(resp.StatusCode) { type apiErr struct {