selfsdk 0.0.188 → 0.0.189
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chat/file_object.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2273047a020d9c4a04ae840a37fedb2129cba216613ae91c54de7a04f16539
|
4
|
+
data.tar.gz: 56d2336cdb03b894d5a792096ec2471bb9dba07377e3a1a7c735a225362cc886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc6acc1f75c6eb4fb2b64f372441d3a712f04958bca1f029809ea970d091850a5291d911587068ab4ba348a76d3baf29632cf9e337817e6c750907cddb51cabc
|
7
|
+
data.tar.gz: c32cd01077dba0a2e0087d40472dac1b7ef565c01632a7ccd86e9f5286d9f01c6bb3b19865a64acd8b9a45006c0b5ff820a5adc466c32ead069cafebd9ee2958
|
data/lib/chat/file_object.rb
CHANGED
@@ -75,7 +75,7 @@ module SelfSDK
|
|
75
75
|
def upload(ciphertext)
|
76
76
|
uri = URI.parse("#{@url}/v1/objects")
|
77
77
|
https = Net::HTTP.new(uri.host, uri.port)
|
78
|
-
https.use_ssl = true
|
78
|
+
https.use_ssl = true
|
79
79
|
req = Net::HTTP::Post.new(uri.path)
|
80
80
|
req["Authorization"] = "Bearer #{@token}"
|
81
81
|
req.body = ciphertext.force_encoding("UTF-8")
|