-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit 3adc412
Use most appropriate function for checking URL
From the http.Get() documentation:
> Caller should close resp.Body when done reading from it.
This was not done previously. Since the body is not needed, http.Head() is more appropriate for this application and it
does not impose the requirement to add additional code to clean up.1 parent 539e940 commit 3adc412
2 files changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1011 | 1011 |
| |
1012 | 1012 |
| |
1013 | 1013 |
| |
1014 | - | ||
1014 | + | ||
1015 | 1015 |
| |
1016 | 1016 |
| |
1017 | 1017 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
751 | 751 |
| |
752 | 752 |
| |
753 | 753 |
| |
754 | - | ||
754 | + | ||
755 | 755 |
| |
756 | 756 |
| |
757 | 757 |
| |
|
0 commit comments