开发者

Rails 3 PDFKit responds with format=pdf for every request after responding with pdf once

开发者 https://www.devze.com 2023-02-09 21:12 出处:网络
I append .pdf to a view, e.g. http://0.0.0.0:3000/users/edit/10024.html That page renders as a PDF. But then every page afterwards also renders as PDF, regardless of whether I append .pdf or .html or

I append .pdf to a view, e.g. http://0.0.0.0:3000/users/edit/10024.html

That page renders as a PDF. But then every page afterwards also renders as PDF, regardless of whether I append .pdf or .html or not开发者_如何学Pythonhing to the end of the url. I'm not even sure how to debug this problem.


Looks like a bug in PDFKit: https://github.com/jdpace/PDFKit/issues#issue/66

0

精彩评论

暂无评论...
验证码 换一张
取 消