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

Serve static files via wai-app-static #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 14, 2021

  1. Serve static files via wai-app-static

    After pondering ndmitchell#367 for a while, this seemed like a nicer solution
    than providing an option to disable this:
    
    wai-app-static is pretty battletested at this point, it’s well
    maintained, has relatively few dependencies and it provides some extra
    functionality around caching which may be useful.
    
    That way, we avoid our own validation logic which was broken several
    times and I’m not surprised if it’s broken again.
    
    This PR does not address haddock: and file: links. Those deliberately
    do not limit paths but they are also disabled by default so from a
    security pov this is less of an issue.
    cocreature committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    34d4ce9 View commit details
    Browse the repository at this point in the history