From: <bra...@us...> - 2007-08-23 21:29:23
|
Revision: 1924 http://archive-access.svn.sourceforge.net/archive-access/?rev=1924&view=rev Author: bradtofel Date: 2007-08-23 14:29:23 -0700 (Thu, 23 Aug 2007) Log Message: ----------- BUGFIX: (unreported) makes https urls work as though they were http. still not the right long-term solution.. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/util/UrlCanonicalizer.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/util/UrlCanonicalizer.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/util/UrlCanonicalizer.java 2007-08-23 21:27:07 UTC (rev 1923) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/util/UrlCanonicalizer.java 2007-08-23 21:29:23 UTC (rev 1924) @@ -198,11 +198,15 @@ * @return String lookup key for URL argument. * @throws URIException */ - public String urlStringToKey(final String urlString) - throws URIException { + public String urlStringToKey(final String urlString) throws URIException { String searchUrl = canonicalize(urlString); + // TODO: force https into http for the moment... + if(searchUrl.startsWith("https://")) { + searchUrl = searchUrl.substring(8); + } + // TODO: this will only work with http:// scheme. should work with all? // force add of scheme and possible add '/' with empty path: if (searchUrl.startsWith("http://")) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |