Skip to content

Parse fractional Retry-After values #43

Closed

Description

@OmarAlJarrah

Problem

RetryAfterParser uses toLongOrNull (RetryAfterParser.kt:193), so a fractional Retry-After: 1.5 silently falls through.

Proposed change

Parse with toDoubleOrNull (keep the existing negative/NaN/365-day clamps).

Acceptance

  • Fractional seconds honoured
  • Existing clamps intact
  • Test

Priority: low · Effort: small

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsdk-coresdk-core toolkit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions