Skip to content

Commit

Permalink
Support HTTP basic auth for notification. Ticket. #443. Thanks Carson…
Browse files Browse the repository at this point in the history
… Baker.
  • Loading branch information
Martyn Loughran committed Oct 28, 2008
1 parent d3a2e8c commit ce010bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/video.rb
Expand Up @@ -438,6 +438,9 @@ def send_status_update_to_client
http = Net::HTTP.new(uri.host, uri.port)

req = Net::HTTP::Post.new(uri.path)
if uri.user and uri.password
req.basic_auth uri.user, uri.password
end
req.form_data = params
response = http.request(req)

Expand Down

0 comments on commit ce010bc

Please sign in to comment.