You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2010/02/17 11:31:00 UTC
svn commit: r910899 -
/incubator/wookie/trunk/src/org/apache/wookie/proxy/ProxyServlet.java
Author: scottbw
Date: Wed Feb 17 10:30:59 2010
New Revision: 910899
URL: http://svn.apache.org/viewvc?rev=910899&view=rev
Log:
Modified proxy server to try to decode all URLs rather than use as fallback behaviour - see WOOKIE-118
Modified:
incubator/wookie/trunk/src/org/apache/wookie/proxy/ProxyServlet.java
Modified: incubator/wookie/trunk/src/org/apache/wookie/proxy/ProxyServlet.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/proxy/ProxyServlet.java?rev=910899&r1=910898&r2=910899&view=diff
==============================================================================
--- incubator/wookie/trunk/src/org/apache/wookie/proxy/ProxyServlet.java (original)
+++ incubator/wookie/trunk/src/org/apache/wookie/proxy/ProxyServlet.java Wed Feb 17 10:30:59 2010
@@ -230,12 +230,12 @@
// the request didn't contain any params, so throw an exception
if (endPointURL == null)
throw new MalformedURLException("Unable to obtain url from args");
-
+
try {
- fNewUrl = new URL(endPointURL);
- } catch (Exception ex) {
// try decoding the URL
fNewUrl = new URL(URLDecoder.decode(endPointURL, "UTF-8"));
+ } catch (Exception ex) {
+ fNewUrl = new URL(endPointURL);
}
}