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

Preventing "" as a service key #120

Merged
merged 3 commits into from
Jun 25, 2021
Merged

Preventing "" as a service key #120

merged 3 commits into from
Jun 25, 2021

Conversation

TheMcMurder
Copy link
Contributor

Due to an internal configuration error I discovered that import-map-deployer accepts "" as a valid key in PATCH requests at /services & /import-map.

After fixing the internal configuration error I thought it might be wise to prevent this behavior. I believe it's technically valid for an import-map to have a key of "", but I figured it still might be worth preventing.

src/verify-valid-input-format.js Outdated Show resolved Hide resolved
src/web-server.js Outdated Show resolved Hide resolved
the_mcmurder and others added 2 commits June 25, 2021 08:00
Pr feedback

Co-authored-by: Joel Denning <joeldenning@gmail.com>
@TheMcMurder TheMcMurder merged commit 3053a4b into main Jun 25, 2021
@TheMcMurder TheMcMurder deleted the preventing-falsy-keys branch June 25, 2021 14:02
@joeldenning
Copy link
Member

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