You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue in elm-reactor where static images with the extension jpg were served with a Content-Type header of image/jpeg while those with a JPG extension get application/octet-stream (the default).
If I'm reading it right, a call to toLower on the extension around here would fix it (all the extensions in the lookup table are conveniently already in lowercase):
I'd have made this a pull request, but I haven't learned Haskell (though knowing elm now I can read more of it than before) and its build toolchain yet.
Thanks!
The text was updated successfully, but these errors were encountered:
I ran into an issue in elm-reactor where static images with the extension jpg were served with a Content-Type header of image/jpeg while those with a JPG extension get application/octet-stream (the default).
If I'm reading it right, a call to toLower on the extension around here would fix it (all the extensions in the lookup table are conveniently already in lowercase):
snap-core/src/Snap/Internal/Util/FileServe.hs
Line 667 in b5ca1f0
I'd have made this a pull request, but I haven't learned Haskell (though knowing elm now I can read more of it than before) and its build toolchain yet.
Thanks!
The text was updated successfully, but these errors were encountered: