Skip to content

Commit

Permalink
fix: remove incorrect /v1 path (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
teodora-sandu authored Apr 30, 2024
1 parent d425945 commit 9414890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [2.7.17]
### Fixed
- Fixed problem in re-enablement of scan types when only one scan type was selected
- Don't add /v1 to all API calls through the Language Server

### Added
- Use https://api.XXX.snyk.io/v1 and https://api.XXX.snykgov.io/v1 as endpoint URLs
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/snyk/common/CustomEndpoints.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ fun getEndpointUrl(): String {
""
}
val customEndpointUrl = resolveCustomEndpoint(endpointUrl)
// we need to set v1 here, to make the sast-enabled calls work in LS
return customEndpointUrl.removeTrailingSlashesIfPresent().suffixIfNot("/v1")
return customEndpointUrl.removeTrailingSlashesIfPresent()
}

fun isSnykCodeAvailable(endpointUrl: String?): Boolean {
Expand Down

0 comments on commit 9414890

Please sign in to comment.