Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HTTP to HTTPS #613

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The following guidelines for contribution should be followed if you want to
submit a pull request.

## Basic Overview
1. Read [Github documentation](http://help.github.com/) and [Pull Request documentation](http://help.github.com/send-pull-requests/)
1. Read [Github documentation](https://help.github.com/) and [Pull Request documentation](https://help.github.com/send-pull-requests/)
2. Fork the repository
3. Create a new branch with a descriptive name for your feature
4. Edit the files, add new files
Expand All @@ -26,8 +26,8 @@ This project uses [pre-commit]
4. Join the [IRC channel] if you have any questions or concerns, or if you just want to talk with other devs

# Additional Resources
* [General GitHub documentation](http://help.github.com/)
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
* [General GitHub documentation](https://help.github.com/)
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/)
* [Read the Issue Guidelines by @necolas](https://github.com/necolas/issue-guidelines/blob/master/CONTRIBUTING.md) for more details
* [This CONTRIBUTING.md from here](https://github.com/anselmh/CONTRIBUTING.md)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To install CloudBot on Windows, see [here](docs/installing/win.md)

### Running CloudBot

Before you run the bot, rename `config.default.json` to `config.json` and edit it with your preferred settings. You can check if your JSON is valid using [jsonlint.com](http://jsonlint.com/)!
Before you run the bot, rename `config.default.json` to `config.json` and edit it with your preferred settings. You can check if your JSON is valid using [jsonlint.com](https://jsonlint.com/)!

Once you have installed the required dependencies and renamed the config file, you can run the bot! Make sure you are in the correct folder and run the following command:

Expand Down Expand Up @@ -74,13 +74,13 @@ CloudBot is **licensed** under the **GPL v3** license. The terms are as follows.
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with CloudBot. If not, see <http://www.gnu.org/licenses/>.
along with CloudBot. If not, see <https://www.gnu.org/licenses/>.

![Powered by wordnik](https://www.wordnik.com/img/wordnik_badge_a1.png)

TV information is provided by [TheTVDB.com], but we are not endorsed or certified by [TheTVDB.com] or its affiliates.

This product uses data from <a href="http://wordnik.com">http://wordnik.com</a> in accordance with the wordnik.com API <a href="http://developer.wordnik.com/#!/terms">terms of service</a>.
This product uses data from <a href="https://wordnik.com">https://wordnik.com</a> in accordance with the wordnik.com API <a href="https://developer.wordnik.com/#!/terms">terms of service</a>.

[latest source]: https://github.com/TotallyNotRobots/CloudBot/archive/main.zip
[latest release]: https://github.com/TotallyNotRobots/CloudBot/releases/latest
Expand Down
2 changes: 1 addition & 1 deletion cloudbot/util/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# security
parser = etree.XMLParser(resolve_entities=False, no_network=True)

ua_cloudbot = "Cloudbot/DEV http://github.com/CloudDev/CloudBot"
ua_cloudbot = "Cloudbot/DEV https://github.com/CloudDev/CloudBot"

ua_firefox = (
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0"
Expand Down
2 changes: 1 addition & 1 deletion cloudbot/util/tokenbucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tokenbucket.py

A python implementation of the token bucket algorithm.
Adapted from <http://code.activestate.com/recipes/511490-implementation-of-the-token-bucket-algorithm/>
Adapted from <https://code.activestate.com/recipes/511490-implementation-of-the-token-bucket-algorithm/>

Maintainer:
- Luke Rogers <https://github.com/lukeroge>
Expand Down
4 changes: 2 additions & 2 deletions cloudbot/util/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Isgd(Shortener):
def shorten(self, url, custom=None, key=None):
p = {"url": url, "shorturl": custom, "format": "json"}
try:
r = requests.get("http://is.gd/create.php", params=p)
r = requests.get("https://is.gd/create.php", params=p)
r.raise_for_status()
except HTTPError as e:
r = e.response
Expand All @@ -242,7 +242,7 @@ def shorten(self, url, custom=None, key=None):
def expand(self, url):
p = {"shorturl": url, "format": "json"}
try:
r = requests.get("http://is.gd/forward.php", params=p)
r = requests.get("https://is.gd/forward.php", params=p)
r.raise_for_status()
except HTTPError as e:
r = e.response
Expand Down
Loading