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

Commit

Permalink
Ported gh-17 (fix for HTTP response parsing)
Browse files Browse the repository at this point in the history
  • Loading branch information
turboladen committed Nov 14, 2012
1 parent 51b887c commit 70a00e7
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 @@ -131,7 +131,7 @@ def initialize(status=nil, body="")
#
# @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
@status_message = $3
Expand Down

0 comments on commit 70a00e7

Please sign in to comment.