Skip to content

Commit 0a27f74

Browse files
authored
HTTP/1: Support streaming requests of unknown length (#714)
**Issue:** aws-sdk-cpp needs to send streaming requests of unknown content length. This isn't currently supported in our HTTP/1 client. **Description of changes:** - Update submodules: aws-c-auth v0.8.5 -> v0.8.6 aws-c-cal v0.8.3 -> v0.8.7 aws-c-common v0.11.1 -> v0.12.0 aws-c-event-stream v0.5.2 -> v0.5.4 aws-c-http v0.9.3 -> v0.9.5 aws-c-io v0.16.0 -> v0.17.0 aws-c-s3 v0.7.11 -> v0.7.13 aws-lc v1.46.1 -> v1.48.4 s2n v1.5.13 -> v1.5.14 - Bring in change that allows HTTP/1 streams of unknown length: - awslabs/aws-c-http#506 - Remove hack in Base64 decoded logic, which is no longer necessary due to this change: - awslabs/aws-c-common#1188
1 parent ba27ca5 commit 0a27f74

10 files changed

+11
-15
lines changed

crt/aws-lc

crt/s2n

Submodule s2n updated from 21cefc1 to 4ed4f1a

source/Types.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,8 @@ namespace Aws
110110
return {};
111111
}
112112

113-
// encoding appends a null terminator, and accounts for it in the encoded length,
114-
// which makes the string 1 character too long
115-
if (outputStr.back() == 0)
116-
{
117-
outputStr.pop_back();
118-
}
113+
AWS_ASSERT(outputStr.length() == tempBuf.len);
114+
119115
return outputStr;
120116
}
121117
} // namespace Crt

0 commit comments

Comments
 (0)