Skip to content

the jobUrl end with / and string contact with double /#301

Open
ns-cn wants to merge 1 commit intobndr:masterfrom
ns-cn:master
Open

the jobUrl end with / and string contact with double /#301
ns-cn wants to merge 1 commit intobndr:masterfrom
ns-cn:master

Conversation

@ns-cn
Copy link

@ns-cn ns-cn commented Dec 29, 2022

expecting jobURL = "job/JOB1", but I got a jobURL = "job/JOB1/", jobURL ends with "/" and then got a Build URL="job/JOB1//1", request returns 404;

if strings.HasSuffix(jobURL, "/") {
	jobURL = jobURL[:len(jobURL)-1]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant