Skip to content

Commit

Permalink
decode query and path
Browse files Browse the repository at this point in the history
  • Loading branch information
shalom938 committed Jan 9, 2025
1 parent 059db5e commit 13483e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class ApiProxyResourceHandler(val project: Project) : CefResourceHandler {
//This method should be tested.
//should always be used to build the proxy url when needed,
//it should make sure to preserve encoding of path and query.
// see unit test : org.digma.intellij.plugin.ui.jcef.proxy.ApiProxyTests.testUrls
//see unit test : org.digma.intellij.plugin.ui.jcef.proxy.ApiProxyTests.testUrls
//some constructors of URI and URL will encode the path and query, some don't.
//here we make sure to preserve the path and query as they were received from jcef

val requestUrl = URI(cefRawRequestUrl).toURL()
var apiUrl = apiBaseUrl.toString()
Expand Down

0 comments on commit 13483e0

Please sign in to comment.