README.md in nightcrawler_swift-0.9.0 vs README.md in nightcrawler_swift-0.10.0
- old
+ new
@@ -75,10 +75,13 @@
# default: nil
config.nightcrawler_swift.ssl_ca_file = "ca_certificate.pem"
#default: nil
config.nightcrawler_swift.ssl_version = "SSLv23"
+
+#default: {}
+config.nightcrawler_swift.custom_headers = {custom_header: 'custom_value'}
```
By default it will use ```Rails.logger``` as logger, to change that use a different logger in configurations, like:
```ruby
@@ -101,10 +104,14 @@
> max_retry_time
Maximum delay in seconds between each retry. The delay will start with 1s and will double for each retry until this value.
+> custom_headers
+
+Optional hash with header fields to be uploaded with the object.
+
#### 2) Profit!
```sh
$ rake nightcrawler_swift:rails:asset_sync
```
@@ -157,9 +164,12 @@
ssl_client_key:
OpenSSL::PKey::RSA.new(File.read("key.pem"), "passphrase, if any"),
# default: nil
ssl_ca_file: "ca_certificate.pem"
+
+# default: {}
+custom_headers: {custom_header: 'custom_value'}
```
By default it will use ```Logger.new(STDOUT)``` as logger, to change that use:
```ruby