Skip to content

Commit 8f51fe5

Browse files
committed
Improve readme copy/paste + update URLs to HTTPS
- Make it easier to copy/paste the readme commands by using code blocks - Update a few URLs to HTTPS to avoid redirects Signed-off-by: Tim Smith <tsmith84@gmail.com>
1 parent 7a2b905 commit 8f51fe5

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ gem 'cgi'
2222

2323
And then execute:
2424

25-
$ bundle
25+
```bash
26+
bundle
27+
```
2628

2729
Or install it yourself as:
2830

29-
$ gem install cgi
31+
```bash
32+
gem install cgi
33+
```
3034

3135
## Usage
3236

@@ -73,7 +77,6 @@ db.transaction do
7377
end
7478
```
7579

76-
7780
### Restore form values from file
7881

7982
```ruby

lib/cgi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The file CGI::Session provides session management functionality; see that
2727
# class for more details.
2828
#
29-
# See http://www.w3.org/CGI/ for more information on the CGI protocol.
29+
# See https://www.w3.org/CGI/ for more information on the CGI protocol.
3030
#
3131
# == Introduction
3232
#

lib/cgi/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def params=(hash)
481481

482482
##
483483
# Parses multipart form elements according to
484-
# http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
484+
# https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
485485
#
486486
# Returns a hash of multipart form parameters with bodies of type StringIO or
487487
# Tempfile depending on whether the multipart form element exceeds 10 KB

0 commit comments

Comments
 (0)