Fixing the "this cannot include CR/LF" error when doing Basic auth in Ruby Sometimes, opting for sensible defaults seems obvious. Yet, sometimes, the default and most obvious option isn't the most sensible.