On Linux (and I can only imagine on other platforms) `curl -I https://example.com` will output the headers with the caret return (\r) character at the end.
So if you're piping it, say, into `sed` with a regex that matches the end of the line with `$`, you might want to do `\r$` instead.
You know, if you want it to work as expected.
That was a weird Bash script bug to figure out, that's for sure.