Skip to content

Commit 5b23b9a

Browse files
authored
Merge pull request #342 from fenek/fix-http-file-upload-header
Remove trailing semicolon in the header used in HttpFileUploadManager
2 parents 1a3067c + 563dad0 commit 5b23b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smack-experimental/src/main/java/org/jivesoftware/smackx/httpfileupload/HttpFileUploadManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ private void uploadFile(final File file, final Slot slot, UploadProgressListener
399399
urlConnection.setUseCaches(false);
400400
urlConnection.setDoOutput(true);
401401
urlConnection.setFixedLengthStreamingMode(fileSize);
402-
urlConnection.setRequestProperty("Content-Type", "application/octet-stream;");
402+
urlConnection.setRequestProperty("Content-Type", "application/octet-stream");
403403
for (Entry<String, String> header : slot.getHeaders().entrySet()) {
404404
urlConnection.setRequestProperty(header.getKey(), header.getValue());
405405
}

0 commit comments

Comments
 (0)