rack-test_app icon indicating copy to clipboard operation
rack-test_app copied to clipboard

Error raising when charset is missing

Open janko opened this issue 8 years ago • 0 comments

First of all, thank you for an awesome gem. So far I found it to be much better than rack-test.

One issue that I've encountered was, if the response Content-Type is e.g. "text/html", Rack::TestApp will raise an error about missing charset. I don't think that's ideal, because AFAIK from HTTP standpoint a charset isn't required. I was thinking instead to have the charset simply default to "utf-8", because that's Ruby's default encoding anyway, and it's very likely that this is what the user would want.

janko avatar May 09 '16 04:05 janko