lib/timber/log_devices/http.rb in timber-1.0.10 vs lib/timber/log_devices/http.rb in timber-1.0.11
- old
+ new
@@ -68,11 +68,11 @@
end
end
end
TIMBER_URL = "https://logs.timber.io/frames".freeze
- CONTENT_TYPE = "application/x-timber-msgpack-frame-1".freeze
+ CONTENT_TYPE = "application/x-timber-msgpack-frame-1; charset=ascii-8bit".freeze
USER_AGENT = "Timber Ruby Gem/#{Timber::VERSION}".freeze
DELIVERY_FREQUENCY_SECONDS = 2.freeze
RETRY_LIMIT = 5.freeze
BACKOFF_RATE_SECONDS = 3.freeze
@@ -228,10 +228,10 @@
end
end
end
def authorization_payload
- @authorization_payload ||= "Basic #{Base64.strict_encode64(@api_key).chomp}"
+ @authorization_payload ||= "Basic #{Base64.urlsafe_encode64(@api_key).chomp}"
end
def logger
Config.instance.logger
end
\ No newline at end of file