Skip to content

Commit 50d171a

Browse files
committed
fix reviews on awschunking and default behavior
1 parent 53b8cce commit 50d171a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws-cpp-sdk-core/include/smithy/client/features/ChunkingInterceptor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ class ChunkingInterceptor : public smithy::interceptor::Interceptor {
147147
}
148148
}
149149

150-
auto chunkedBuf = Aws::MakeUnique<AwsChunkedStreamBuf>(
150+
auto chunkedBuf = Aws::MakeShared<AwsChunkedStreamBuf>(
151151
ALLOCATION_TAG, request.get(), originalBody);
152152
auto chunkedBody = std::shared_ptr<Aws::IOStream>(
153-
new Aws::IOStream(chunkedBuf.release()));
153+
new Aws::IOStream(chunkedBuf.get()));
154154

155155
request->AddContentBody(chunkedBody);
156156
return request;

0 commit comments

Comments
 (0)