Skip to content

Commit 012085e

Browse files
committed
pr comments
1 parent 045d748 commit 012085e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/filesharing/FileSharingMessageListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ private void processAttachments(@NotNull MessageReceivedEvent event,
143143

144144
HttpRequest request = HttpRequest.newBuilder()
145145
.uri(URI.create(SHARE_API))
146-
.headers("Accept", "application/json", "Authorization", "token " + gistApiKey)
146+
.header("Accept", "application/json")
147+
.header("Authorization", "token " + gistApiKey)
147148
.POST(HttpRequest.BodyPublishers.ofString(body))
148149
.build();
149150

0 commit comments

Comments
 (0)