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

Add in logic to detect the 401 #53

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

enorasec
Copy link
Contributor

Fixes Issue #51

Cesarone and others added 4 commits July 8, 2019 11:16
Upgrade Pipfile python version to 3.7
Added a if/else statement to determine if self.response gets set with a 401. This doesn't happen when GET follows the redirects.
@enorasec
Copy link
Contributor Author

@blaise-sumo

Comment on lines 46 to 48
endpoint = self.response.url.replace('/collectors', '') # dirty hack to sanitise URI and retain domain
else:
endpoint = self.response.url.replace('/collectors', '') # dirty hack to sanitise URI and retain domain
Copy link
Contributor

Choose a reason for hiding this comment

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

That's unnecessary code duplicaiton.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching it. Updated code to remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, reviewing the recent commit logs. This can be closed.

Per a code review, it was noted two lines were noted as being duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants