• Resolved trollo

    (@wb7eu)


    Hello,

    I’ve noticed, that every request may be answered with 404 in some setups, even if successful. This can be omitted by explicitly sending HTTP 200 before serving the file in dl-file.php:

    [...]
    // If we made it this far, just serve the filestatus_header( 200 );
    readfile( $file );
    exit;
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter trollo

    (@wb7eu)

    Sorry, missing newline – corrected:

    [...]
    // If we made it this far, just serve the file
    status_header( 200 );
    readfile( $file );
    exit;
    Plugin Author Deepak Khokhar

    (@deepakkite)

    Hi,

    Thanks for the suggestion. I have added this and pushed a new update. I hope you like the plugin so far. It would be so nice to have your valuable feedback 🙂

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘404 on every successful request’ is closed to new replies.