Skip to content

Commit cf78475

Browse files
committed
revert changes and disable win 32
1 parent 65f1e5c commit cf78475

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/aws-cpp-sdk-core/source/http/interceptor/ChunkingInterceptor.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ ChunkingInterceptor::ModifyResponseOutcome ChunkingInterceptor::ModifyBeforeDese
6666
}
6767

6868
bool ChunkingInterceptor::ShouldApplyAwsChunking(const std::shared_ptr<Aws::Http::HttpRequest>& request) const {
69-
#ifdef _WIN32
70-
// Temporarily disable aws-chunked on Windows due to HTTP client compatibility issues
71-
return false;
72-
#endif
73-
7469
if (!request || !request->GetContentBody()) {
7570
return false;
7671
}
72+
73+
#ifdef _WIN32
74+
// Temporarily disable aws-chunked on Windows due to HTTP client compatibility issues
75+
return false;
76+
#else
7777
const auto& hashPair = request->GetRequestHash();
7878
return hashPair.second != nullptr;
79+
#endif
7980
}
8081

8182
} // namespace Http

0 commit comments

Comments
 (0)