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

fix: null returned from getTerms() #189

Merged

Conversation

jxjj
Copy link
Contributor

@jxjj jxjj commented Aug 26, 2024

In previous PR, we changed the allow_redirects option to false in the Bandaid service to fix a failing CI test:

Http::globalOptions([
  'allow_redirects' => false,
]);

The side effect was that Bandaid::getTerms() would fail because it relied on a redirect. It's url /classes/terms/ contained a trailing slashes, which previously would be redirected to /classes/terms (no trailing slash).

This removes the trailing slash to resolve the issue.

In previous PR, we changed the allow_redirects option to false to fix a failing CI test.
```
Http::globalOptions([
  'allow_redirects' => false,
]);
```

The side effect was that `Bandaid::getTerms()` would fail because it relied on a redirect. It's url `/classes/terms/` contained a trailing slashes, which previously would be redirected to `/classes/terms` (no trailing slash).

This removes the trailing slash to resolve the issue.
@jxjj jxjj requested a review from cmcfadden August 26, 2024 17:02
@jxjj jxjj self-assigned this Aug 26, 2024
@jxjj jxjj merged commit 4b2d7d7 into develop Aug 26, 2024
2 checks passed
@jxjj jxjj deleted the feature/fix-null-results-returned-from-bandaid-get-terms branch August 26, 2024 17:50
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