Revision 1297:0a574315af3e extra
| extra/mail_handler/rdm-mailhandler.rb | ||
|---|---|---|
| 10 | 10 |
def self.post_form(url, params, headers, options={})
|
| 11 | 11 |
request = Post.new(url.path) |
| 12 | 12 |
request.form_data = params |
| 13 |
request.initialize_http_header(headers) |
|
| 13 | 14 |
request.basic_auth url.user, url.password if url.user |
| 14 |
request.initialize_http_header(headers) |
|
| 15 | 15 |
http = new(url.host, url.port) |
| 16 | 16 |
http.use_ssl = (url.scheme == 'https') |
| 17 | 17 |
if options[:no_check_certificate] |
| ... | ... | |
| 23 | 23 |
end |
| 24 | 24 |
|
| 25 | 25 |
class RedmineMailHandler |
| 26 |
VERSION = '0.2' |
|
| 26 |
VERSION = '0.2.1'
|
|
| 27 | 27 |
|
| 28 | 28 |
attr_accessor :verbose, :issue_attributes, :allow_override, :unknown_user, :no_permission_check, :url, :key, :no_check_certificate |
| 29 | 29 |
|
Also available in: Unified diff