From 6f5b161aaa3db22258a9f1e5dd69a979090ef580 Mon Sep 17 00:00:00 2001 From: Steve Loveless Date: Wed, 14 Nov 2012 14:36:24 -0800 Subject: [PATCH] #extract_status_line now parses HTTP responses. Closes gh-17. --- lib/rtsp/response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rtsp/response.rb b/lib/rtsp/response.rb index 5dc3136..e0b5ca0 100644 --- a/lib/rtsp/response.rb +++ b/lib/rtsp/response.rb @@ -68,7 +68,7 @@ def split_head_and_body_from raw_response # # @param [String] line The String containing the status line info. def extract_status_line(line) - line =~ /RTSP\/(\d\.\d) (\d\d\d) ([^\r\n]+)/ + line =~ /RTSP|HTTP\/(\d\.\d) (\d\d\d) ([^\r\n]+)/ @rtsp_version = $1 @code = $2.to_i @message = $3