Skip to content

Ignore Expires header of 0 and -1 for error log #282

@floens

Description

@floens

When processing the Expires header in HttpHeaderParser, and when the value is invalid it logs an error.

https://github.com/google/volley/blob/master/src/main/java/com/android/volley/toolbox/HttpHeaderParser.java#L138

However, Cloudflare often sets this field to 0 or -1, causing the log to be spammed with warnings. I'd rather see the warning not being logged at all, of a simple filter for 0 and -1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions