Commit d1eba8b
committed
no need to send date header in client
The date header is optional for clients, but also seems to be
discouraged. It's so rare so maybe leave it to the user.
https://tools.ietf.org/html/rfc7231#section-7.1.1.2
> A user agent MAY send a Date…
The older RFC https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18
> Clients SHOULD only send a Date header field in messages that include an entity-body,
> as in the case of the PUT and POST requests, and even then it is optional. A client
> without a clock MUST NOT send a Date header field in a request.1 parent b911766 commit d1eba8b
File tree
3 files changed
+0
-9
lines changed- src/client
- tests/fixtures
3 files changed
+0
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
0 commit comments