-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Simulate an HTTP 304 response #3333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hyper does less things than curl. I don't think hyper should handle this itself. It's something for a higher level client that provides files and caching support, in my opinion. |
Would reqwest be a better place for this to be added or should it be done using reqwest-middleware? |
If reqwest had fuller support for files and caching and stuff, then it'd make sense. It doesn't have that, though. I can't speak to reqwest-middleware. |
Thanks @seanmonstar! |
Version
0.14.27
Platform
Linux hostname 6.5.3-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:16 +0000 x86_64 GNU/Linux
Description
When a header is included like
If-Modified-Since: Tue, 03 Oct 2023 00:39:17 GMT
while the modification date is older than the request date some servers still respond with a status code 200.Example with curl:
Should hyper have the same behavior of simulation the 304?
BTW, this is the login from curl:
The text was updated successfully, but these errors were encountered: