lib/socialcastr/api.rb in socialcastr-0.1.2 vs lib/socialcastr/api.rb in socialcastr-0.1.3
- old
+ new
@@ -115,9 +115,9 @@
unless query.nil?
params = query.collect do |k,v|
"#{k.to_s}=#{CGI::escape(v.to_s)}"
end
end
- "/api#{path.to_s =~ /\// ? path.to_s : "/" + path.to_s }.#{@format}" + (params.any? ? "?" + params.join('&') : "")
+ "/api#{path.to_s =~ /^\// ? path.to_s : "/" + path.to_s }.#{@format}" + (params.any? ? "?" + params.join('&') : "")
end
end
end