How does WordPress format the url on a 301 when a trailing slash is missing?

How does WordPress format the url on a 301 when a trailing slash is missing?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)