diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/net/http.rd.ja | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/net/http.rd.ja b/doc/net/http.rd.ja index 7569f98f72..1bdb898b80 100644 --- a/doc/net/http.rd.ja +++ b/doc/net/http.rd.ja @@ -79,7 +79,7 @@ Net::HTTP を継承しているので Net::HTTP と全く同じように使えます。 Net::HTTP.start( 'auth.some.domain' ) {|http| response , = http.get( '/need-auth.cgi', - 'Authentication' => ["#{account}:#{password}"].pack('m').strip ) + 'Authorization' => 'Basic ' + ["#{account}:#{password}"].pack('m').strip ) print response.body } |