net-http2
net-http2 copied to clipboard
Support running with --enable=frozen-string-literal
In apps that run with --enable=frozen-string-literal we can get a FrozenError.
Using String.new instead of '' fixes that without breaking it for anyone else.
When running the specs with frozen strings (RUBYOPT="--enable=frozen-string-literal" rake), there were three test files that also generate errors. I added the magic comment: # frozen-string-literal: false
to those to work both ways.
I have a related PR on http-2 to get all the specs passing: https://github.com/igrigorik/http-2/pull/161