bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ 100839 ] GSHTTPURLHandle ignores port


From: nobody
Subject: [ 100839 ] GSHTTPURLHandle ignores port
Date: Wed, 01 May 2002 15:47:16 -0400

Support Request #100839, was updated on 2002-May-01 15:47
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100839&group_id=99

Category: Foundation
Status: Open
Priority: 5
Summary: GSHTTPURLHandle ignores port

By: lcampbel
Date: 2002-May-01 15:47

Message:
Logged In: NO 
Browser: Mozilla/4.5 (compatible; OmniWeb/4.1-v391; Mac_PowerPC)

GSHTTPURLHandle ignores the port part of the URL, so I can only connect to port 
80 or 443.

Here's the fix:

==== 
//projects/shared/gnustep-base-1.1.0/akamai/gnustep-base/Source/GSHTTPURLHandle.m#1
 (text) - 
//projects/shared/gnustep-base-1.1.0/akamai/gnustep-base/Source/GSHTTPURLHandle.m#2
 (text) ==== content
@@ -328,7 +328,10 @@
   if ([[request objectForKey: GSHTTPPropertyProxyHostKey] length] == 0)
     {
       host = [url host];
-      port = [url scheme];
+      if ([url port] != nil)
+         port = [NSString stringWithFormat:@"%u", [[url port] 
unsignedIntValue]];
+      else
+         port = [url scheme];
       if ([[url scheme] isEqualToString: @"https"])
        {
          if (sslClass == 0)


----------------------------------------------------------------------
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100839&group_id=99



reply via email to

[Prev in Thread] Current Thread [Next in Thread]