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 custom request headers #110

Merged
merged 2 commits into from
Oct 6, 2019
Merged

Add custom request headers #110

merged 2 commits into from
Oct 6, 2019

Conversation

Zeroji
Copy link
Contributor

@Zeroji Zeroji commented Oct 6, 2019

Adds a header field to Request objects, allowing custom headers.
This is useful for custom actions that need header-based authentication, for example non-webhook Discord messages (see #83).

(There may be issues with the way I updated my repo, causing a merge commit - let me know if I need to change anything)

Allows actions with header-based authentication to use request wrapper.
User-Agent header can be overridden if necessary.
@coveralls
Copy link

coveralls commented Oct 6, 2019

Pull Request Test Coverage Report for Build 144

  • 1 of 4 (25.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 62.645%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pastepwn/util/request.py 1 4 25.0%
Totals Coverage Status
Change from base Build 141: -0.1%
Covered Lines: 919
Relevant Lines: 1467

💛 - Coveralls

Copy link
Owner

@d-Rickyy-b d-Rickyy-b left a comment

Choose a reason for hiding this comment

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

Looks good!

@d-Rickyy-b d-Rickyy-b merged commit 6ce23c4 into d-Rickyy-b:master Oct 6, 2019
@Zeroji Zeroji deleted the custom-request-headers branch October 6, 2019 14:07
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

3 participants