1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix two errors.

Missing article added.
Consistent (at least in this file) use of abbreviation.
This commit is contained in:
Andreas Scherer 2009-02-17 15:05:28 +01:00
parent 48791dda34
commit 71947e30cc

View file

@ -589,7 +589,7 @@ With this in place, you can create namespaced controllers that inherit from +Adm
h4. HTTP digest authentication
HTTP digest authentication is superior to the basic authentication as it does not require the client to send unencrypted password over the network (though HTTP basic authentication is safe over HTTPS). Using digest authentication with Rails is quite easy and only requires using one method, +authenticate_or_request_with_http_digest+.
HTTP digest authentication is superior to the basic authentication as it does not require the client to send an unencrypted password over the network (though HTTP basic authentication is safe over HTTPS). Using digest authentication with Rails is quite easy and only requires using one method, +authenticate_or_request_with_http_digest+.
<ruby>
class AdminController < ApplicationController
@ -656,7 +656,7 @@ class ClientsController < ApplicationController
end
</ruby>
This will read and stream the file 4Kb at the time, avoiding loading the entire file into memory at once. You can turn off streaming with the +:stream+ option or adjust the block size with the +:buffer_size+ option.
This will read and stream the file 4kB at the time, avoiding loading the entire file into memory at once. You can turn off streaming with the +:stream+ option or adjust the block size with the +:buffer_size+ option.
WARNING: Be careful when using data coming from the client (params, cookies, etc.) to locate the file on disk, as this is a security risk that might allow someone to gain access to files they are not meant to see.