Skip to content

Commit

Permalink
Reset the content byte buffer after content has been read
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Feb 23, 2024
1 parent a92d239 commit 670ae58
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public String getContentEncoding() {

@Override
public void releaseResources() {
if (content != null) {
content.clear();
}

if (currentStream != null) {
try {
currentStream.close();
Expand Down

0 comments on commit 670ae58

Please sign in to comment.