mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-23 20:11:29 +00:00
Basic Authentication (#28)
* adding basic http authentication * updating ruby style * SSL support, variable name corrections
This commit is contained in:
@@ -4,7 +4,11 @@ module Haste
|
||||
|
||||
# Create a new uploader
|
||||
def initialize
|
||||
@uploader = Uploader.new ENV['HASTE_SERVER']
|
||||
@uploader = Uploader.new(
|
||||
ENV['HASTE_SERVER'],
|
||||
ENV['HASTE_USER'],
|
||||
ENV['HASTE_PASS'],
|
||||
ENV['HASTE_SSL_CERTS'])
|
||||
end
|
||||
|
||||
# And then handle the basic usage
|
||||
|
||||
Reference in New Issue
Block a user