incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r746403 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala
Date Fri, 20 Feb 2009 22:47:26 GMT
Author: vdichev
Date: Fri Feb 20 22:47:26 2009
New Revision: 746403

URL: http://svn.apache.org/viewvc?rev=746403&view=rev
Log:
Support for empty URL prefixes (no prefix) for Twitter API

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala?rev=746403&r1=746402&r2=746403&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala Fri Feb
20 22:47:26 2009
@@ -50,7 +50,7 @@
 import java.util.logging._
 
 object TwitterAPI {
-  val ApiPath = Props.get("twitter.prefix", "twitter") split "/" toList
+  val ApiPath = Props.get("twitter.prefix", "twitter").split("/").toList.filter(! _.isEmpty)
   
   def twitterAuth = HttpBasicAuthentication("esme") {
     case (user: String, password: String, _) =>



Mime
View raw message