Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
#extract_status_line now parses HTTP responses.
Browse files Browse the repository at this point in the history
Closes gh-17.
  • Loading branch information
turboladen committed Nov 14, 2012
1 parent 45983b8 commit 6f5b161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rtsp/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f5b161

Please sign in to comment.