-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue "(EmptyBodyBehavior = EmptyBodyBehavior.Allow)" not being…
… honored when request body was empty (#1885)
- Loading branch information
Showing
6 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.autover/changes/7db9a194-0cc2-43e7-81da-e2f468d3fc90.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"Projects": [ | ||
{ | ||
"Name": "Amazon.Lambda.AspNetCoreServer", | ||
"Type": "Patch", | ||
"ChangelogMessages": [ | ||
"Fixed issue \u0027(EmptyBodyBehavior = EmptyBodyBehavior.Allow)\u0027 not being honored when request body was empty" | ||
] | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
.autover/changes/f8f316e8-1393-4185-bfb1-07ccfa2e68bf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"Projects": [ | ||
{ | ||
"Name": "Amazon.Lambda.AspNetCoreServer.Hosting", | ||
"Type": "Patch", | ||
"ChangelogMessages": [ | ||
"Fixed issue \u0027(EmptyBodyBehavior = EmptyBodyBehavior.Allow)\u0027 not being honored when request body was empty" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/values-put-no-body-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"resource": "/{proxy+}", | ||
"path": "/api/values/no-body", | ||
"httpMethod": "PUT", | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "gzip, deflate, br", | ||
"CloudFront-Forwarded-Proto": "https", | ||
"CloudFront-Is-Desktop-Viewer": "true", | ||
"CloudFront-Is-Mobile-Viewer": "false", | ||
"CloudFront-Is-SmartTV-Viewer": "false", | ||
"CloudFront-Is-Tablet-Viewer": "false", | ||
"CloudFront-Viewer-ASN": "20055", | ||
"CloudFront-Viewer-Country": "US", | ||
"Host": "example.execute-api.us-west-2.amazonaws.com", | ||
"User-Agent": "unittests", | ||
"Via": "1.1 3dd55c11c72ef969f5e46a679c8244ba.cloudfront.net (CloudFront)", | ||
"X-Amz-Cf-Id": "BA8bXHQfFrXacZsRsTUqvFLc849kUgSURcu8IkPIIadtNO2k6gMbtg==", | ||
"X-Amzn-Trace-Id": "Root=1-67451657-4fdc56e47b7240b358e7ef09", | ||
"X-Forwarded-For": "50.35.61.49, 3.172.20.16", | ||
"X-Forwarded-Port": "443", | ||
"X-Forwarded-Proto": "https", | ||
"ContentLength": "0", | ||
"Content-Type": "application/json" | ||
}, | ||
"queryStringParameters": null, | ||
"multiValueQueryStringParameters": null, | ||
"pathParameters": { | ||
"proxy": "api/values/no-body" | ||
}, | ||
"stageVariables": null, | ||
"requestContext": { | ||
"resourceId": "3r2bn3", | ||
"resourcePath": "/{proxy+}", | ||
"httpMethod": "PUT", | ||
"extendedRequestId": "B1BtwG20vHcEp-g=", | ||
"requestTime": "26/Nov/2024:00:29:11 +0000", | ||
"path": "/Prod/api/values/test", | ||
"accountId": "111122223333", | ||
"protocol": "HTTP/1.1", | ||
"stage": "Prod", | ||
"domainPrefix": "example", | ||
"requestTimeEpoch": 1732580951687, | ||
"requestId": "b5738763-be0a-4ded-945b-a92895dbc5de", | ||
"identity": { | ||
"cognitoIdentityPoolId": null, | ||
"accountId": null, | ||
"cognitoIdentityId": null, | ||
"caller": null, | ||
"sourceIp": "50.35.61.49", | ||
"principalOrgId": null, | ||
"accessKey": null, | ||
"cognitoAuthenticationType": null, | ||
"cognitoAuthenticationProvider": null, | ||
"userArn": null, | ||
"userAgent": "PostmanRuntime/7.42.0", | ||
"user": null | ||
}, | ||
"domainName": "example.execute-api.us-west-2.amazonaws.com", | ||
"deploymentId": "example", | ||
"apiId": "example" | ||
}, | ||
"body": null, | ||
"isBase64Encoded": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters