1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-21 13:52:06 +01:00

Merge pull request #342 from fenek/fix-http-file-upload-header

Remove trailing semicolon in the header used in HttpFileUploadManager
This commit is contained in:
Florian Schmaus 2019-08-30 19:46:15 +02:00 committed by GitHub
commit 5b23b9a6ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -399,7 +399,7 @@ public final class HttpFileUploadManager extends Manager {
urlConnection.setUseCaches(false);
urlConnection.setDoOutput(true);
urlConnection.setFixedLengthStreamingMode(fileSize);
urlConnection.setRequestProperty("Content-Type", "application/octet-stream;");
urlConnection.setRequestProperty("Content-Type", "application/octet-stream");
for (Entry<String, String> header : slot.getHeaders().entrySet()) {
urlConnection.setRequestProperty(header.getKey(), header.getValue());
}