Skip to content

Commit

Permalink
iss #69: use application/x-fictionbook mime type to prevent appendi…
Browse files Browse the repository at this point in the history
…ng .xml in android
  • Loading branch information
maizy committed May 7, 2021
1 parent c3191d6 commit 486be5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ponylib_app/web/books.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ func BuildDownloadBookHandler(conn *pgxpool.Pool) func(c *gin.Context) {
httpheader.SetContentDisposition(header, "attachment", book.RId.ResourceBaseName(), nil)
c.Header("Content-Disposition", header.Get("Content-Disposition"))

c.DataFromReader(http.StatusOK, size, "text/xml; charset=utf-8", *reader, nil)
c.DataFromReader(http.StatusOK, size, "application/x-fictionbook; charset=utf-8", *reader, nil)
}
}

0 comments on commit 486be5b

Please sign in to comment.