Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c965b9c

Browse filesBrowse files
committed
follow up fix to the GHRepository.getApiTailUrl() change
1 parent 762a32e commit c965b9c
Copy full SHA for c965b9c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/main/java/org/kohsuke/github/GHRelease.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRelease.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static GHRelease[] wrap(GHRelease[] releases, GHRepository owner) {
120120
public GHAsset uploadAsset(File file, String contentType) throws IOException {
121121
Requester builder = new Requester(owner.root);
122122

123-
String url = format("https://uploads.github.com%sreleases/%d/assets?name=%s",
123+
String url = format("https://uploads.github.com%s/releases/%d/assets?name=%s",
124124
owner.getApiTailUrl(""), getId(), file.getName());
125125
return builder.contentType(contentType)
126126
.with(new FileInputStream(file))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.