1
0
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:
Nick Otter
2022-02-14 10:25:49 -07:00
committed by GitHub
parent fb77a2e9f5
commit 6e9801e547
3 changed files with 49 additions and 5 deletions

View File

@@ -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