Commit 1308721
authored
fix(clients): lowercase all header names in serializer (#1892)
The HTTP request class doesn't have any implementations to insure
case-insensitivity of the http headers. So we need to be mindful
when populating these headers. Otherwise, the reqeust signature
will be messed up. This change will ensure the protocol-specific
default headers like content-type will be overriden by the serialized
header if exists.
For other headers added through middleware stack either by
customization or users, it wouldn't affect signing or sending as long
as the request doesn't contain same header names in different casing.
All the internal headers will be consistent. But users should be
careful when they are adding their own headers.
We don't add middleware to lowercase all headers to prevent
alternating the users' customizations.
Ref: #18001 parent 7a3e8f4 commit 1308721
File tree
139 files changed
+4534
-4519
lines changed- clients
- client-acm-pca/protocols
- client-acm/protocols
- client-alexa-for-business/protocols
- client-api-gateway/protocols
- client-appconfig/protocols
- client-application-auto-scaling/protocols
- client-application-discovery-service/protocols
- client-application-insights/protocols
- client-appstream/protocols
- client-athena/protocols
- client-auto-scaling-plans/protocols
- client-budgets/protocols
- client-cloud9/protocols
- client-cloudfront/protocols
- client-cloudhsm-v2/protocols
- client-cloudhsm/protocols
- client-cloudsearch-domain/protocols
- client-cloudtrail/protocols
- client-cloudwatch-events/protocols
- client-cloudwatch-logs/protocols
- client-codebuild/protocols
- client-codecommit/protocols
- client-codedeploy/protocols
- client-codeguruprofiler/protocols
- client-codepipeline/protocols
- client-codestar-connections/protocols
- client-codestar/protocols
- client-cognito-identity-provider/protocols
- client-cognito-identity/protocols
- client-cognito-sync/protocols
- client-comprehendmedical/protocols
- client-comprehend/protocols
- client-compute-optimizer/protocols
- client-config-service/protocols
- client-connectparticipant/protocols
- client-cost-and-usage-report-service/protocols
- client-cost-explorer/protocols
- client-data-pipeline/protocols
- client-database-migration-service/protocols
- client-datasync/protocols
- client-dax/protocols
- client-device-farm/protocols
- client-direct-connect/protocols
- client-directory-service/protocols
- client-dynamodb-streams/protocols
- client-dynamodb/protocols
- client-ebs/protocols
- client-ec2-instance-connect/protocols
- client-ecr-public/protocols
- client-ecr/protocols
- client-ecs/protocols
- client-emr/protocols
- client-eventbridge/protocols
- client-firehose/protocols
- client-fms/protocols
- client-forecastquery/protocols
- client-forecast/protocols
- client-frauddetector/protocols
- client-fsx/protocols
- client-gamelift/protocols
- client-glacier/protocols
- client-global-accelerator/protocols
- client-glue/protocols
- client-greengrass/protocols
- client-healthlake/protocols
- client-health/protocols
- client-identitystore/protocols
- client-inspector/protocols
- client-iotsecuretunneling/protocols
- client-iotthingsgraph/protocols
- client-kendra/protocols
- client-kinesis-analytics-v2/protocols
- client-kinesis-analytics/protocols
- client-kinesis/protocols
- client-kms/protocols
- client-lakeformation/protocols
- client-lambda/protocols
- client-lex-runtime-service/protocols
- client-license-manager/protocols
- client-lightsail/protocols
- client-lookoutvision/protocols
- client-machine-learning/protocols
- client-macie/protocols
- client-marketplace-commerce-analytics/protocols
- client-marketplace-entitlement-service/protocols
- client-marketplace-metering/protocols
- client-mediastore-data/protocols
- client-mediastore/protocols
- client-migration-hub/protocols
- client-migrationhub-config/protocols
- client-mturk/protocols
- client-network-firewall/protocols
- client-opsworkscm/protocols
- client-opsworks/protocols
- client-organizations/protocols
- client-personalize/protocols
- client-pi/protocols
- client-pricing/protocols
- client-qldb-session/protocols
- client-redshift-data/protocols
- client-rekognition/protocols
- client-resource-groups-tagging-api/protocols
- client-route-53-domains/protocols
- client-route53resolver/protocols
- client-s3/protocols
- client-sagemaker-runtime/protocols
- client-sagemaker/protocols
- client-secrets-manager/protocols
- client-service-catalog/protocols
- client-service-quotas/protocols
- client-servicediscovery/protocols
- client-sfn/protocols
- client-shield/protocols
- client-sms/protocols
- client-snowball/protocols
- client-ssm/protocols
- client-sso-admin/protocols
- client-storage-gateway/protocols
- client-support/protocols
- client-swf/protocols
- client-textract/protocols
- client-timestream-query/protocols
- client-timestream-write/protocols
- client-transcribe/protocols
- client-transfer/protocols
- client-translate/protocols
- client-waf-regional/protocols
- client-wafv2/protocols
- client-waf/protocols
- client-workdocs/protocols
- client-workmail/protocols
- client-workspaces/protocols
- codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen
- protocol_tests
- aws-json
- protocols
- tests/functional
- aws-restjson
- protocols
- tests/functional
- aws-restxml
- protocols
- tests/functional
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
139 files changed
+4534
-4519
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
0 commit comments