Skip to content

Parse fractional Retry-After values #43

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsdk-coresdk-core toolkit

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions