-
Notifications
You must be signed in to change notification settings - Fork 29
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
Mimetypes #7
Comments
From https://stackoverflow.com/questions/12494501/libmagic-text-plain-instead-of-text-javascript-text-css it looks like libmagic can't work CSS & JS out from plain text. So I could manually set them based on extension, or just use the built-in Golang mime types like on Windows. I genuinely can't remember why I used magicmime over the Golang built-in so I might start with that and see what (if anything) breaks. |
Let me know when it's in and I'll test. I haven't used the Go builtin mimes but the Python built in mimetypes have never failed me. |
@pizzapanther, I've replaced magicmime with standard Golang mime package on master. Please let me know if this is working as you expect |
@pizzapanther have you had a chance to test this out? |
I did but I don't think I was building it correctly. Can you package up a new binary so I can just test it that way? |
No worries, uploaded release candidate 2 here: https://github.com/bobbo/git-s3-push/releases/tag/0.2.1 Thanks for the help testing this out |
Looks good http://nimb.ws/ilpJC2 And you even get the UTF-8 charset added too. |
Fixed in v0.2.1: https://github.com/bobbo/git-s3-push/releases/tag/0.2.1 Thanks! |
CSS gets set to mimetype
text/plain
instead oftext/css
which screws up the browser. Is there any way to change this behavior or is this a code issue? I'm guessing this is something coming from libmagic so maybe there is configuration I can do?The text was updated successfully, but these errors were encountered: