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

Explicitly check for response ok false in codeServerRequest #2383

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

laurakwhit
Copy link
Contributor

@laurakwhit laurakwhit commented Oct 10, 2024

Description & motivation 💭

The Response object has non-enumerable properties and therefore has(response, 'ok') will always be false even if ok exists. This PR updates the logic to explicitly check for response.ok === false instead.

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

DT-2522

Docs

Any docs updates needed?

Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 8:21pm

@laurakwhit laurakwhit marked this pull request as ready for review October 10, 2024 20:20
@laurakwhit laurakwhit merged commit bcc9f02 into main Oct 11, 2024
14 checks passed
@laurakwhit laurakwhit deleted the fix-encode-response-ok-check branch October 11, 2024 00:43
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