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

fix: type hint error #1553

Merged
merged 5 commits into from
Jun 28, 2023
Merged

fix: type hint error #1553

merged 5 commits into from
Jun 28, 2023

Conversation

st1020
Copy link
Member

@st1020 st1020 commented Jun 28, 2023

No description provided.

@Bidaya0 Bidaya0 self-requested a review June 28, 2023 08:43
@@ -576,7 +577,7 @@ def vul_recheck():
header_raw[index] = f'{_header_name}:{recheck_payload}'
break
try:
headers = base64.b64encode('\n'.join(header_raw))
headers = base64.b64encode('\n'.join(header_raw).encode("utf-8"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use raw_unicode_escape instead of utf-8.

# skip until sca data stable
self.assertGreaterEqual(asset.vul_count, 0)
self.assertGreaterEqual(cast(int, asset.vul_count), 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try annotate in asset model class

@@ -603,7 +604,7 @@ def vul_recheck():
cookie_raw = ';'.join(cookie_raw_items)
header_raw[cookie_index] = cookie_raw
try:
headers = base64.b64encode('\n'.join(header_raw))
headers = base64.b64encode('\n'.join(header_raw).encode("utf-8"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@Bidaya0 Bidaya0 merged commit 161328d into HXSecurity:develop Jun 28, 2023
15 checks passed
@st1020 st1020 deleted the fix/type-hint-error branch July 10, 2023 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants