Escape slash in database name

This commit is contained in:
Brian Candler 2009-03-26 09:40:45 +00:00 committed by Matt Aimonetti
parent 4337e676ee
commit 190bd13723
2 changed files with 10 additions and 2 deletions

View file

@ -17,7 +17,7 @@ module CouchRest
@name = name
@server = server
@host = server.uri
@uri = @root = "#{host}/#{name}"
@uri = @root = "#{host}/#{name.gsub('/','%2F')}"
@streamer = Streamer.new(self)
@bulk_save_cache = []
@bulk_save_cache_limit = 500 # must be smaller than the uuid count