-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi Li (@lihaoyi),
thank you a lot for your great contribution to the community with scala-cask <3.
I guess this change had caused breaking changes.
On version 0.8.1 I could use @cask.staticResources in order to provide a static webpage with javascript support.
From version 0.8.2 the webpage does not work anymore.
Problem was that on earlier version the "Content-Type" header was not set.
From version 0.8.2 however the "Content-Type" is set to "application/octet-stream" or the like.
I could fix that by setting the "Content-Type" header to "".
E.g.: @cask.staticResources("/my/path/", resourceRoot = getClass.getClassLoader, headers = Seq("Content-Type" -> ""))
PS: maybe this comment may help others with similiar issues