Skip to content

Commit

Permalink
Merge pull request #1730 from CrimeIsDown/rdio-scanner-http-fix
Browse files Browse the repository at this point in the history
Fix Rdio Scanner API call to comply with HTTP standards
  • Loading branch information
DSheirer committed Nov 12, 2023
2 parents 2b9e753 + 490569e commit 8599aeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ private void processRecordingQueue()
.uri(URI.create(getBroadcastConfiguration().getHost()))
.header(HttpHeaders.CONTENT_TYPE, MULTIPART_FORM_DATA + "; boundary=" + bodyBuilder.getBoundary())
.header(HttpHeaders.USER_AGENT, "sdrtrunk")
.header(HttpHeaders.CONTENT_TYPE, "audio/mpeg")
.POST(bodyBuilder.build())
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private String formatFilePart(String boundary)
}
StringBuilder sb= new StringBuilder();
sb.append(DASH_DASH).append(boundary).append("\r\n");
sb.append("Content-Disposition: form-data; filename =\"").append(audioName);
sb.append("Content-Disposition: form-data; filename=\"").append(audioName);
sb.append("\"; name=\"").append("audio").append("\"\r\n\r\n");
return sb.toString();

Expand Down

0 comments on commit 8599aeb

Please sign in to comment.