Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning HTML breaks proxy #615

Closed
mattbrandman opened this issue Jun 11, 2024 · 4 comments
Closed

Returning HTML breaks proxy #615

mattbrandman opened this issue Jun 11, 2024 · 4 comments

Comments

@mattbrandman
Copy link

mattbrandman commented Jun 11, 2024

It appears that when returning HTML from an endpoint the proxy seems to intercept and not return the traffic to the site. You can reproduce by making a simple endpoint that returns <div></div> and see that it is not in the payload. Returning plaintext or json does not suffer from this issue. Noticed this issue as I'm working with HTMX responses and they do not seem to work from the proxy but work from the non-proxy port.

@michaelgaultjr
Copy link

michaelgaultjr commented Jun 13, 2024

I'm also experiencing this issue. Would be nice to get a fix for this soon, really would be nice to have hot reloading while working with Go And HTML.

EDIT: It looks like there is some PR's attempting to fix the issue being worked on
#611
#604

@diego-velez
Copy link

+1

@ndajr
Copy link
Contributor

ndajr commented Jun 28, 2024

This should be fixed, please download the new air version. Make sure you have a <body></body> tag in your html page

@mattbrandman
Copy link
Author

Can confirm this is fixed in 1.52.3! Thank you incredible experience using this now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants