From ee19e33c35c3c6eb02c03d436f8801d21dc85c97 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 03:15:58 +0000 Subject: [PATCH] Sandbox URL Creation --- pyproject.toml | 1 + src/security/safe_requests/api.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 345b61e..c4da3b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ description = "The security toolkit for the Python community" keywords = ["security", "appsec"] dependencies = [ "requests", + "security==1.2.1", ] [project.urls] diff --git a/src/security/safe_requests/api.py b/src/security/safe_requests/api.py index f962b17..c4c7631 100644 --- a/src/security/safe_requests/api.py +++ b/src/security/safe_requests/api.py @@ -1,6 +1,6 @@ from .host_validators import DefaultHostValidator from security.exceptions import SecurityException -from requests import get as unsafe_get, post as unsafe_post +from security.safe_requests import get as unsafe_get, post as unsafe_post from urllib.parse import urlparse DEFAULT_PROTOCOLS = frozenset(("http", "https"))