Fix grammar erros, add info about headers to rdoc

This commit is contained in:
Stephen Sykes 2015-11-13 11:07:29 +02:00
parent 05457f9e89
commit 3c0c290ac8
2 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,7 @@ FastImage normally replies will nil if it encounters an error, but you can pass
FastImage also provides a reader for the content length header provided in HTTP. This may be useful to assess the file size of an image, but do not rely on it exclusively - it will not be present in chunked responses for instance.
FastImage accepts additional HTTP headers. This can be used to set a user agent or referrer which some server require. Pass a :http_header argument to specify headers, e.g., :http_header => {'User-Agent' => 'Fake Browser'}.
FastImage accepts additional HTTP headers. This can be used to set a user agent or referrer which some servers require. Pass an :http_header argument to specify headers, e.g., :http_header => {'User-Agent' => 'Fake Browser'}.
h2. Security

View File

@ -24,6 +24,10 @@
# This may be useful to assess the file size of an image, but do not rely on it exclusively -
# it will not be present in chunked responses for instance.
#
# FastImage accepts additional HTTP headers. This can be used to set a user agent
# or referrer which some servers require. Pass an :http_header argument to specify headers,
# e.g., :http_header => {'User-Agent' => 'Fake Browser'}.
#
# === Examples
# require 'fastimage'
#