Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send 404 immediately for known public requests #11117

Merged
merged 5 commits into from
Apr 18, 2020

Commits on Apr 17, 2020

  1. Send 404 immediately for known public requests

    Instead of further handling requests to `public` which causes issues
    like go-gitea#11088, immediately
    terminate requests to directories `js`, `css`, `fomantic` if no file is
    found which is checked against a hardcoded list. Maybe there is a way to
    retrieve the top-level entries below `public` in a dynamic fashion.
    
    I also added `fomantic` to the reserved usernames and sorted the list.
    
    Fixes: go-gitea#11088
    silverwind committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    55d922e View commit details
    Browse the repository at this point in the history
  2. remove ctx.Resp.Write

    silverwind committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    eb554ef View commit details
    Browse the repository at this point in the history
  3. rename variable

    silverwind committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    13ed26a View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Configuration menu
    Copy the full SHA
    451f8c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3765761 View commit details
    Browse the repository at this point in the history