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

Adding headers to urlopen requests #44

Merged
merged 3 commits into from
Nov 9, 2019
Merged

Adding headers to urlopen requests #44

merged 3 commits into from
Nov 9, 2019

Conversation

djotaku
Copy link
Owner

@djotaku djotaku commented Nov 9, 2019

As a consequence of the DDOS that Extra-life suffered on game day, headers are required now. So I added headers to my requests and it looks like everything's working OK. (Also, I really need to refactor my code, I've got roughly the same thing happening in 5 (or more) different places!)

Oh yeah, also in this merge I cleaned up the directory a little like moving the .ui files into a folder and getting rid of the Jenkinsfile since I'm using Github actions now.

If all the checks pass, I'll merge and make a new release.

In order to make things less of a mess during development:
- moved the UI files to their own directory
- got rid of the Jenkinsfile since I'm using Github actions
instead of Jenkins
- got rid of the extralifedonations.spec because I don't
think I need it anymore.
Adding in the updated issue templates into devel to prevent a merge
conflict in the future. Those were created on the github wesite and
put directly into master.
I guess this is a result of the DDOS attack that Extra-life.org
suffered on game day, but it started failing grabbing the JSON
data. At first I thought it was because I was grabbing http
instead of https, but nope. It turns out that now I need
to add a user-agent string. Made up my own and that seems
to be just fine to get through.

The amount of places I had to change this just drives home
that I need to do the URLOPEN refactor I've been thinking
about for a while. Just didn't want to make drastic changes
until after game day.
@djotaku djotaku added the bug label Nov 9, 2019
@djotaku djotaku self-assigned this Nov 9, 2019
@djotaku djotaku changed the title Adding heads to urlopen requests Adding headers to urlopen requests Nov 9, 2019
@djotaku djotaku merged commit b6a5633 into master Nov 9, 2019
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

1 participant