We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed1f00 commit ce512c2Copy full SHA for ce512c2
precise/src/AsyncTrinoClient.tsx
@@ -66,7 +66,8 @@ class TrinoQueryRunner {
66
state.stats.state = 'CANCELLING'
67
this.state = state
68
this.setStatus(state)
69
- const nextUri = state.nextUri.replace('http://localhost:8080', '')
+ const nextUri = state.nextUri.replace(/^https?:\/\/[^/]+/, '')
70
+
71
// cancel query
72
fetch(nextUri, {
73
method: 'DELETE',
@@ -255,7 +256,7 @@ class TrinoQueryRunner {
255
256
async NextPage(previous: any) {
257
try {
258
// fix cors for testing
- const nextUri = await previous.nextUri.replace('http://localhost:8080', '')
259
+ const nextUri = await previous.nextUri.replace(/^https?:\/\/[^/]+/, '')
260
const response = await fetch(nextUri, {
261
method: 'GET',
262
headers: {
0 commit comments