ssl fixes for sinatra links