Skip to content

Commit

Permalink
improved url concatenation to handle when datasetID is URL like
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjiangshu committed Sep 14, 2024
1 parent fde3126 commit e9e9ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sda-admin/dataset/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Release(apiURI, token, datasetID string) error {
if err != nil {
return err
}
parsedURL.Path = path.Join(parsedURL.Path, "dataset/release", datasetID)
parsedURL.Path = path.Join(parsedURL.Path, "dataset/release") + "/" + datasetID

jsonBody := []byte("{}")
_, err = helpers.PostRequest(parsedURL.String(), token, jsonBody)
Expand Down

0 comments on commit e9e9ac9

Please sign in to comment.