LiterateInk / Pawnote

A purrfect API wrapper for PRONOTE.
https://docs.literate.ink/pawnote
GNU General Public License v3.0
55 stars 12 forks source link

fix: Allow headers to be retreived without the Headers object globally set #40

Closed ecnivtwelve closed 4 months ago

ecnivtwelve commented 4 months ago

Description

When the global Headers object doesn't exist, they can't be retreived, causing a Pawnote crash. This fix allows it to return the Headers item (assuming it exists) even without the instanciation.

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration:

Desktop (please complete the following information) :