0.1.0 boosted
This commit is contained in:
parent
126e90084e
commit
f29c40d25e
11 changed files with 181 additions and 22 deletions
|
|
@ -32,11 +32,6 @@ class ApiServer(BaseModel):
|
|||
proxy_headers: bool = True
|
||||
|
||||
|
||||
# @pass_context
|
||||
# def https_url_for(context: dict, name: str, **params: Any) -> str:
|
||||
# http_url = url_for_query(context, name, **params)
|
||||
# return str(http_url).replace("http", "https", 1)
|
||||
|
||||
|
||||
@pass_context
|
||||
def url_for_query(context: dict, name: str, **params: dict) -> str:
|
||||
|
|
@ -71,7 +66,6 @@ def url_for_query(context: dict, name: str, **params: dict) -> str:
|
|||
|
||||
if os.environ.get("ENV") in ["dev", "qa", "prod"]:
|
||||
updated_url = updated_url.replace("http", "https", 1)
|
||||
|
||||
return updated_url
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue