File tree 2 files changed +16
-8
lines changed
smithy-aws-protocol-tests/model 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ structure InputAndOutputWithHeadersIO {
412
412
headerIntegerEnumList : IntegerEnumList ,
413
413
}
414
414
415
- /// Null and empty headers are not sent over the wire.
415
+ /// Null headers are not sent over the wire, empty headers are serialized to ""
416
416
@readonly
417
417
@http (uri : " /NullAndEmptyHeadersClient" , method : " GET" )
418
418
@tags ([" client-only" ])
@@ -443,7 +443,7 @@ apply NullAndEmptyHeadersClient @httpRequestTests([
443
443
},
444
444
])
445
445
446
- /// Null and empty headers are not sent over the wire.
446
+ /// Null headers are not sent over the wire, empty headers are serialized to ""
447
447
@readonly
448
448
@http (uri : " /NullAndEmptyHeadersServer" , method : " GET" )
449
449
@tags ([" server-only" ])
@@ -455,10 +455,14 @@ operation NullAndEmptyHeadersServer {
455
455
apply NullAndEmptyHeadersServer @httpResponseTests ([
456
456
{
457
457
id : " RestJsonNullAndEmptyHeaders" ,
458
- documentation : " Do not send null or empty headers" ,
458
+ documentation : " Do not send null values, but do send empty strings and empty lists over the wire in headers" ,
459
459
protocol : restJson1 ,
460
460
code : 200 ,
461
- forbidHeaders : [" X-A" , " X-B" , " X-C" ],
461
+ forbidHeaders : [" X-A" ],
462
+ headers : {
463
+ "X-B" : " "
464
+ "X-C" : " "
465
+ }
462
466
params : {
463
467
a : null ,
464
468
b : " " ,
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ structure InputAndOutputWithHeadersIO {
355
355
headerEnumList : FooEnumList ,
356
356
}
357
357
358
- /// Null and empty headers are not sent over the wire.
358
+ /// Null headers are not sent over the wire, empty headers are serialized to ""
359
359
@readonly
360
360
@http (uri : " /NullAndEmptyHeadersClient" , method : " GET" )
361
361
@tags ([" client-only" ])
@@ -386,7 +386,7 @@ apply NullAndEmptyHeadersClient @httpRequestTests([
386
386
},
387
387
])
388
388
389
- /// Null and empty headers are not sent over the wire.
389
+ /// Null headers are not sent over the wire, empty headers are serialized to ""
390
390
@readonly
391
391
@http (uri : " /NullAndEmptyHeadersServer" , method : " GET" )
392
392
@tags ([" server-only" ])
@@ -398,10 +398,14 @@ operation NullAndEmptyHeadersServer {
398
398
apply NullAndEmptyHeadersServer @httpResponseTests ([
399
399
{
400
400
id : " NullAndEmptyHeaders" ,
401
- documentation : " Do not send null or empty headers" ,
401
+ documentation : " Do not send null values, but do send empty strings and empty lists over the wire in headers" ,
402
402
protocol : restXml ,
403
403
code : 200 ,
404
- forbidHeaders : [" X-A" , " X-B" , " X-C" ],
404
+ forbidHeaders : [" X-A" ],
405
+ headers : {
406
+ "X-B" : " "
407
+ "X-C" : " "
408
+ }
405
409
body : " " ,
406
410
params : {
407
411
a : null ,
You can’t perform that action at this time.
0 commit comments