mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
fix info request in js client (#4271)
* fix info request in js client * changelog
This commit is contained in:
parent
7145327058
commit
1151c52535
5
.changeset/tender-suits-draw.md
Normal file
5
.changeset/tender-suits-draw.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@gradio/client": patch
|
||||
---
|
||||
|
||||
Ensure the full root path is always respected when making requests to a gradio app server.
|
@ -5,6 +5,7 @@ No changes to highlight.
|
||||
## Bug Fixes:
|
||||
|
||||
- Fixed the behavior of the `run_on_click` parameter in `gr.Examples` by [@abidlabs](https://github.com/abidlabs) in [PR 4258](https://github.com/gradio-app/gradio/pull/4258).
|
||||
- Ensure js client respcts the full root when making requests to the server by [@pngwn](https://github.com/pngwn) in [PR 4271](https://github.com/gradio-app/gradio/pull/4271)
|
||||
|
||||
## Other Changes:
|
||||
|
||||
|
@ -655,7 +655,7 @@ export async function client(
|
||||
}
|
||||
);
|
||||
} else {
|
||||
response = await fetch(`${http_protocol}//${host}/info`, {
|
||||
response = await fetch(`${config.root}/info`, {
|
||||
headers
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user