README.md in pdfkit-0.8.6 vs README.md in pdfkit-0.8.7
- old
+ new
@@ -61,11 +61,11 @@
# or:
PDFKit.new(html, protocol: 'https').to_file
```
### Using cookies in scraping
-If you want to pass a cookie to cookie to pdfkit to scrape a website, you can
+If you want to pass a cookie to pdfkit to scrape a website, you can
pass it in a hash:
```ruby
kit = PDFKit.new(url, cookie: {cookie_name: :cookie_value})
kit = PDFKit.new(url, [:cookie, :cookie_name1] => :cookie_val1, [:cookie, :cookie_name2] => :cookie_val2)
```
@@ -170,10 +170,10 @@
urls including the domain). In restrictive server environments the
root_url configuration may be what you are looking for change your
asset host.
* **Mangled output in the browser:** Be sure that your HTTP response
- headers specify "Content-Type: application/pdf"
+ headers specify "content-type: application/pdf"
## Note on Patches/Pull Requests
* Fork the project.
* Setup your development environment with: `gem install bundler`; `bundle install`