Author: kclark
Date: Tue Jun 17 18:09:53 2008
New Revision: 668962
URL: http://svn.apache.org/viewvc?rev=668962&view=rev
Log:
Stop using deprecated classes in SimpleMongrelHTTPServer
Modified:
incubator/thrift/trunk/lib/rb/lib/thrift/server/httpserver.rb
Modified: incubator/thrift/trunk/lib/rb/lib/thrift/server/httpserver.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/server/httpserver.rb?rev=668962&r1=668961&r2=668962&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/server/httpserver.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/server/httpserver.rb Tue Jun 17
18:09:53 2008
@@ -20,7 +20,7 @@
end
response.start(200) do |head, out|
head["Content-Type"] = "application/x-thrift"
- transport = TIOStreamTransport.new request.body, out
+ transport = IOStreamTransport.new request.body, out
protocol = @protocol_factory.get_protocol transport
@processor.process protocol, protocol
end
@@ -31,7 +31,7 @@
port = opts[:port] || 80
ip = opts[:ip] || "0.0.0.0"
path = opts[:path] || ""
- protocol_factory = opts[:protocol_factory] || TBinaryProtocolFactory.new
+ protocol_factory = opts[:protocol_factory] || BinaryProtocolFactory.new
@server = Mongrel::HttpServer.new ip, port
@server.register "/#{path}", Handler.new(processor, protocol_factory)
end