-
Notifications
You must be signed in to change notification settings - Fork 1
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
Minor fixes #1
Minor fixes #1
Conversation
42d97ad
to
6a42844
Compare
0b798c8
to
6805625
Compare
Thank you for the PR! Sorry it took me so long to respond. I'm a little conflicted on serving the working directory by default.
Con:
cd /home/my_user_name
grup my_md_files/example.md
# now everyone can read everything in your home directory Not sure how bad it could be since we're not serving a directory listing in How would you feel about an additional flag enabling that behaviour and a warning if using it with a non-localhost address? |
Hey thanks for the comments! I totally agree with your sentiment that serving arbitrary files are bad. Perhaps a better implementation would be to ignore the built-in support in I think the current implementation in this PR is even broken. If you launch grup like your example it probably won't find images since the paths would be wrong... Unfortunately I don't see myself continuing work on this PR since I already worked a lot on my async/await branch. So feel free to close it. |
Thank you for pitching in!
I like your the whitelisting approach for image files.
|
Yeah, it seems like async/await is coming in November. I'll port anything you do on the master branch to my async-await branch. |
Hey, I updated the dependencies, added support for images and changed a few minor things.