Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit cd65345

Browse files
committed
fix issue with HTTP headers failing to re-send source to archiver
Signed-off-by: Neal Ensor <[email protected]>
1 parent bdbaeaa commit cd65345

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/gov/osti/services/Metadata.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,6 @@ private static void sendToArchiver(DOECodeMetadata md) throws IOException {
744744

745745
post.setEntity(new StringEntity(request.toString(), "UTF-8"));
746746
} else {
747-
post.setHeader("Content-Type", "multipart/form-data");
748-
post.setHeader("Accept", "application/json");
749747
post.setEntity(MultipartEntityBuilder
750748
.create()
751749
.setMode(HttpMultipartMode.BROWSER_COMPATIBLE)

0 commit comments

Comments
 (0)