mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-14 17:30:21 +08:00
use default instead of factory
This commit is contained in:
parent
beb3390c65
commit
b8ca2d28f4
@ -12,7 +12,7 @@ from src import consts
|
||||
|
||||
class LinkRequest(BaseModel):
|
||||
cmd: str = Field(
|
||||
default_factory=lambda: "request.get",
|
||||
default="request.get",
|
||||
description="Type of request, currently only supports GET requests. This string is purely for compatibility with FlareSolverr.",
|
||||
)
|
||||
url: str = Field(pattern=r"^https?://", default="https://")
|
||||
|
Loading…
x
Reference in New Issue
Block a user