branch off v1 as R_1_7
[m6w6/ext-http] / http_url_api.c
index 09558a246386f767a14365af4bc80bb7b6e52a0c..8a70b0f2fb18b3435110b436b7f1f68023cafb15 100644 (file)
@@ -6,7 +6,7 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2007, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
@@ -175,6 +175,7 @@ PHP_HTTP_API void _http_build_url(int flags, const php_url *old_url, const php_u
                                default:
 #endif
                                case 80:
+                               case 0:
                                        url->scheme = estrndup("http", lenof("http"));
                                        break;