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

Encode download path #302

Merged
merged 7 commits into from
Jul 28, 2021
Merged

Encode download path #302

merged 7 commits into from
Jul 28, 2021

Conversation

RayceeM
Copy link
Contributor

@RayceeM RayceeM commented Jul 23, 2021

Encode the query params passed in download path

@RayceeM RayceeM requested a review from FrankApiyo July 23, 2021 09:53
@JohnMwashuma JohnMwashuma self-requested a review July 27, 2021 11:50
@RayceeM RayceeM merged commit 4cd748b into master Jul 28, 2021
#?(:clj (URLEncoder/encode val)
#?(:clj (if (seq? val)
(URLEncoder/encode val)
val)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can reduce the repetition of val by using a cond here:

(cond-> val
  (seq? val) (URLEncoder/encode))

@RayceeM RayceeM deleted the encode-data-url branch July 28, 2021 08:38
@FrankApiyo FrankApiyo mentioned this pull request Aug 10, 2021
1 task
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.

4 participants