1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-07-01 00:25:00 +02:00

fix(issue): IssueService.Search() with a not empty JQL triggers 400 bad request (#292)

The JQL search term is escaped twice.

closes issue #291
This commit is contained in:
Andy Grunwald
2020-05-03 10:05:39 +02:00
committed by GitHub
parent 4b91cf2b13
commit 8b64c7f005
3 changed files with 45 additions and 3 deletions

View File

@ -963,7 +963,7 @@ func (s *IssueService) Search(jql string, options *SearchOptions) ([]Issue, *Res
}
uv := url.Values{}
if jql != "" {
uv.Add("jql", url.QueryEscape(jql))
uv.Add("jql", jql)
}
if options != nil {