Skip to content

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.

2 participants