Commit 61bc009
authored
fix Twirl example to correctly render in a browser (#189)
## Issue
When I tried the Twirl example in my browser, I noticed the HTML wasn't
rendering. This is due to the `Content-Type` header coming back as
`text/plain` instead of ` text/html`
## Change
I build a full cask.Response object so I can set the content-type
header. Ideally there is a better way to set this up. As I'm only just
poking at the framework I'm not sure what the best way is, but I'm
submitting what worked for me.1 parent 27dfe9a commit 61bc009
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments