File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1604,10 +1604,15 @@ private static void DownloadCredentialProviders(Uri feedUri)
16041604 private static Uri GetTruncatedFeedUri ( Uri methodUri )
16051605 {
16061606 string truncatedUriString = methodUri . GetLeftPart ( UriPartial . Path ) ;
1607- int lastSeparatorIndex = truncatedUriString . LastIndexOf ( '/' ) ;
1608- if ( lastSeparatorIndex != - 1 )
1607+
1608+ // Pull off the function if there is one
1609+ if ( truncatedUriString . EndsWith ( ")" ) )
16091610 {
1610- truncatedUriString = truncatedUriString . Substring ( 0 , lastSeparatorIndex ) ;
1611+ int lastSeparatorIndex = truncatedUriString . LastIndexOf ( '/' ) ;
1612+ if ( lastSeparatorIndex != - 1 )
1613+ {
1614+ truncatedUriString = truncatedUriString . Substring ( 0 , lastSeparatorIndex ) ;
1615+ }
16111616 }
16121617 Uri truncatedUri = new Uri ( truncatedUriString ) ;
16131618 return truncatedUri ;
You can’t perform that action at this time.
0 commit comments