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

Feature/simplify script string manipulation #123

Merged
merged 4 commits into from
Mar 10, 2024

Conversation

natenho
Copy link
Owner

@natenho natenho commented Mar 10, 2024

This PR will simplify the access to Request data in scripts.

For example, currently all access to Request Query parameters must be accessed like this to avoid errors when the parameter is not passed:

Request.Query["foo"]?.ToString() == "bar"

With this PR the coalescing and conversion to string is not needed anymore, as the Request.Query will always return a string:

Request.Query["foo"] == "bar"

The same applies to Request.Header and Request.Route

@natenho natenho merged commit bceec67 into master Mar 10, 2024
3 checks passed
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.

1 participant