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 the interactive link address #207

Merged
merged 2 commits into from
Sep 4, 2024
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ git clone https://github.com/wu-clan/httpfpt.git

## 互动

[WeChat / QQ](https://github.com/wu-clan)
[WeChat / QQ](https://wu-clan.github.io/homepage/)

## 状态

Expand Down
6 changes: 3 additions & 3 deletions httpfpt/common/send_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def send_request(
else:
request_data_parsed.update({'data': request_data_parsed.pop('body')})
try:
request_data_parsed = var_extractor.vars_replace(request_data_parsed, parsed_data['env'])
request_data_parsed: dict = var_extractor.vars_replace(request_data_parsed, parsed_data['env']) # type: ignore # noqa: ignore
parsed_data.update(
body=request_data_parsed.get('json')
or request_data_parsed.get('data')
Expand All @@ -235,9 +235,9 @@ def send_request(
response_data = self.init_response_metadata
response_data['stat']['execute_time'] = get_current_time()
if request_engin == EnginType.requests:
response = self._requests_engin(**request_conf, **request_data_parsed, **kwargs) # type: ignore
response = self._requests_engin(**request_conf, **request_data_parsed, **kwargs)
elif request_engin == EnginType.httpx:
response = self._httpx_engin(**request_conf, **request_data_parsed, **kwargs) # type: ignore
response = self._httpx_engin(**request_conf, **request_data_parsed, **kwargs)
else:
raise SendRequestError('请求发起失败,请使用合法的请求引擎:requests / httpx')

Expand Down
Loading