Skip to content

Added headers parameter to network.fetch call #107

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

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

kimmellr
Copy link
Contributor

The header parameter was not being passed to the network.fetch call. This broke any request that required a authentication header to retrieve data (i.e. Twitter)

I added headers=self._headers to the network.fetch call and tested with the Twitter API.

@ladyada ladyada requested a review from makermelissa February 18, 2021 16:05
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

Thanks. I believe this is the correct place to fix it.

@makermelissa
Copy link
Collaborator

It looks like the same issue exists in the Blinka_PyPortal repo, which I can add.

@makermelissa makermelissa merged commit d6b42be into adafruit:master Feb 18, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 19, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_DotStar to 2.0.1 from 2.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#51 from adafruit/REUSE
  > Hardcoded Black and REUSE versions
  > Added pre-commit-config file

Updating https://github.com/adafruit/Adafruit_CircuitPython_DS1841 to 1.0.4 from 1.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_DS1841#3 from adafruit/REUSE
  > Hardcoded Black and REUSE versions
  > Added pre-commit-config file

Updating https://github.com/adafruit/Adafruit_CircuitPython_LPS2X to 2.0.2 from 2.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_LPS2X#6 from adafruit/REUSE
  > Hardcoded Black and REUSE versions
  > Added pre-commit-config file

Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx to 2.4.4 from 2.4.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP230xx#39 from SAK917/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel_SPI to 0.9.1 from 0.9.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_NeoPixel_SPI#27 from adafruit/REUSE
  > Hardcoded Black and REUSE versions
  > Added pre-commit-config file

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 5.1.4 from 5.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#107 from kimmellr/request-header-fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_TM to 1.0.2 from 1.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_TM#2 from imgrant/serial_number

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_Eddystone to 1.0.3 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_Eddystone#11 from adafruit/REUSE

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_iBBQ to 1.2.3 from 1.2.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_iBBQ#4 from adafruit/REUSE
  > Hardcoded Black and REUSE versions
  > Added pre-commit-config file
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