Skip to content

Commit

Permalink
Do not encode the proxy URI before the validation
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Sep 22, 2024
1 parent 5ca2434 commit 13a0b25
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.50",
"version": "1.0.51",
"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"] })
.uri({ scheme: ["http"], encodeUri: false })
.optional(),

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

0 comments on commit 13a0b25

Please sign in to comment.