- Timestamp:
- Nov 29, 2016, 12:30:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/morty.go
r51 r52 285 285 } 286 286 287 ctx.SetContentType(fmt.Sprintf("%s; charset=UTF-8", contentInfo[0])) 287 if bytes.Contains(contentType, []byte("xhtml")) { 288 ctx.SetContentType("text/html; charset=UTF-8") 289 } else { 290 ctx.SetContentType(fmt.Sprintf("%s; charset=UTF-8", contentInfo[0])) 291 } 288 292 289 293 switch {
Note:
See TracChangeset
for help on using the changeset viewer.