-
Notifications
You must be signed in to change notification settings - Fork 516
Set Date and Server headers on response start #862
Conversation
|
|
||
| namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure | ||
| { | ||
| class Headers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth keeping this class at this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems rather pointless indeed 😄
0b29b07 to
b7d7510
Compare
| { | ||
| [Theory] | ||
| [InlineData(true)] | ||
| [InlineData(false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather have this converted into a test that checks those headers are not there.
|
🆙📅 - Ready for another review! // @CesarBS |
| await connection.ReceiveEnd( | ||
| $"Date: {connection.Server.Context.DateHeaderValue}", | ||
| "Content-Length: 0", | ||
| "Server: Kestrel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any remaining tests the verify that the "Server: Kestrel" header is sent by default?
d33cd86 to
55a310a
Compare
|
I really think we need a test that verifies the "Server: Kestrel" header is sent by default. |
a155bd5 to
a7ec2ed
Compare
|
@halter73 Yep. Added a test that checks the default headers 😄 |
| await connection.ReceiveEnd( | ||
| "HTTP/1.1 200 OK", | ||
| $"Date: {testContext.DateHeaderValue}", | ||
| "Server: Kestrel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
|
I guess resetting |
a7ec2ed to
4f036a0
Compare
|
Rebased and resolved conflicts.
Filed #879 |
|
Looks good |
|
LGTM too. Can you squash the commits? |
4f036a0 to
34d8f6c
Compare
Done 👍 |
34d8f6c to
f47c2ed
Compare
f47c2ed to
72cc0ff
Compare
|
Thanks! |
Closes #223
// @Tratcher