mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor request function to include id parameter if provided
This commit is contained in:
parent
f17df73f29
commit
e3ea6396cb
1 changed files with 2 additions and 2 deletions
|
|
@ -14,10 +14,10 @@ def request(method: Union[Literal["POST"], Literal["GET"]], url: str, _id: Optio
|
|||
"version": get_version(),
|
||||
"os": get_os_info(),
|
||||
}
|
||||
if _id:
|
||||
data["id"] = _id
|
||||
|
||||
headers = {"User-Agent": f"BunkerWeb/{data['version']}"}
|
||||
if _id is not None:
|
||||
data["id"] = _id
|
||||
try:
|
||||
resp = requests_request(
|
||||
method,
|
||||
|
|
|
|||
Loading…
Reference in a new issue