Skip to content

Commit

Permalink
[CSAPI] Need to buffer input stream for post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrobin committed Oct 1, 2024
1 parent 0f8fa99 commit 9147794
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

package org.sensorhub.impl.service.consys.resource;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand Down Expand Up @@ -432,7 +433,7 @@ public StreamHandler getStreamHandler()

public InputStream getInputStream() throws IOException
{
return req != null ? req.getInputStream() : inputStream;
return req != null ? new BufferedInputStream(req.getInputStream()) : inputStream;
}


Expand Down

0 comments on commit 9147794

Please sign in to comment.