Support HTTP basic auth for notification. Ticket. #443. Thanks Carson Baker.
This commit is contained in:
Родитель
d3a2e8c76c
Коммит
ce010bcdbe
|
@ -438,6 +438,9 @@ class Video < SimpleDB::Base
|
|||
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)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче