acmesh-official / acmesh-official/acme.sh

Support for HTTP-date in HTTP Retry-After Header (RFC9110)

Đã đóng Phù hợp với người mới
#7,201 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.