Skip to content

Commit

Permalink
Encode URIs before validation for the "proxy" parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Sep 23, 2024
1 parent 13a0b25 commit 6602a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screenshotone-validations",
"homepage": "https://screenshotone.com",
"version": "1.0.51",
"version": "1.0.52",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const commonOptionsScheme = Joi.object({
headers: Joi.array().items(),
cookies: Joi.array().items(),
proxy: Joi.string()
.uri({ scheme: ["http"], encodeUri: false })
.uri({ scheme: ["http"], encodeUri: true })
.optional(),

bypass_csp: Joi.boolean().default(false).optional(),
Expand Down

0 comments on commit 6602a95

Please sign in to comment.