acmesh-official / acmesh-official/acme.sh
Support for HTTP-date in HTTP Retry-After Header (RFC9110)
- Ngôn ngữ chính
- Shell
- Star
- 47.6k
- Fork
- 5.7k
- Merge trung bình
- 6 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 15
Mô tả
According to RFC9110 (https://httpwg.org/specs/rfc9110.html#field.retry-after) the Retry-After Header supports two types of value: HTTP-date and delay-seconds.
When the field contains a http-date, the check crashes and falls back to the default of 2 seconds sleep:
`.acme.sh/acme.sh: line 5875: [: Thu,20Aug202609: integer expression expected`
I'd be happy to provide a pull request if you'd like.
Thanks!
Hướng dẫn đóng góp
Hướng nghiên cứu
The issue points to line 5875 in acme.sh where the Retry-After header parsing fails for HTTP-date format. Start by examining the script around that line to see how the header value is currently processed. Compare with RFC9110 to understand the two formats (HTTP-date and delay-seconds). Write a fix that handles both formats correctly, then test with a server that returns an HTTP-date Retry-After header.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 75/100