Skip to content

rtFileDownloader.cpp mistakenly checks for "302 Found" instead of just "302" for HTTP redirects #7

Description

@rawlinp

size_t find302Status = httpHeaderStr.find(0, "302 Found");

Servers are not required to send the reason phrase in the HTTP status and will send just HTTP/1.1 302 instead of HTTP/1.1 302 Found. For example, Tomcat 9 removed their sendReasonPhrase option altogether, meaning Tomcat 9+ servers will only send 302 instead of 302 Found. This code should instead check for the string "302" in the HTTP status header.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions