Coming up in Crystal 1.7, HTTP response will have a redirect method built-in. That method calls close after setting the Location header. I think this might also fix this elusive bug https://forum.crystal-lang.org/t/help-solving-io-error/130
Checklist
[x] - An issue already exists detailing the issue/or feature request that this PR fixes
[x] - All specs are formatted with crystal tool format spec src
[x] - Inline documentation has been added and/or updated
[x] - Lucky builds on docker with ./script/setup
[x] - All builds and specs pass on docker with ./script/test
Purpose
Fixes #1735
Description
Coming up in Crystal 1.7, HTTP response will have a redirect method built-in. That method calls
close
after setting the Location header. I think this might also fix this elusive bug https://forum.crystal-lang.org/t/help-solving-io-error/130Checklist
crystal tool format spec src
./script/setup
./script/test