-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
issue #420 return 400 response when Max-Days is too big #422
Conversation
@kugiyasan thanks for trying to solve the issue, but this doesn't seem the proper solution. your code doesn't fix either of them: also the metadata are saved anyway even if the max date is "wrong" |
Oh sorry, I jumped the gun and forgot to explain! I played around with a local server, and
which explains why 100000 days (around 274 years) works but 110000 days (301 years) fails. Personally I prefer the 400 response. but both numbers aren't logically speaking "invalid", so should we simply silently ignore |
Oops, sorry @aspacca, the tests were passing and I merged the main branch, can you re-run the tests and merge please? |
…ch-1 * 'patch-1' of github.com:GanZhiXiong/transfer.sh: issue dutchcoders#420 added MaxDate.IsZero() check (dutchcoders#427) fix go1.16, add go1.17 bump bluemonday Revert "issue dutchcoders#420 return 400 response when Max-Days is too big (dutchcoders#422)" (dutchcoders#426) issue dutchcoders#420 return 400 response when Max-Days is too big (dutchcoders#422) Implement Nix Flake (dutchcoders#424) fix missed errors (dutchcoders#417) Fix path (dutchcoders#416) Edited code of condunct for more information and corrected a grammatical error (dutchcoders#421) Update README.md (dutchcoders#415) Update README.md
No description provided.