Index: src/wp-includes/functions.php
===================================================================
--- src/wp-includes/functions.php	(revision 47570)
+++ src/wp-includes/functions.php	(working copy)
@@ -902,7 +902,7 @@
 
 				// Check to see if we can figure out the mime type from the extension.
 				$url_parts = @parse_url( $url );
-				if ( false !== $url_parts ) {
+				if ( false !== $url_parts && ! empty( $url_parts['path'] ) ) {
 					$extension = pathinfo( $url_parts['path'], PATHINFO_EXTENSION );
 					if ( ! empty( $extension ) ) {
 						foreach ( wp_get_mime_types() as $exts => $mime ) {
