mirror of
https://github.com/agrinman/tunnelto.git
synced 2026-04-26 01:06:01 +03:00
[GH-ISSUE #37] Header-only responses faulty #34
Labels
No labels
Need more info
bug
duplicate
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tunnelto#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @airblade on GitHub (Mar 12, 2021).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/37
I have an endpoint that returns a header-only 200 OK response; there is no body.
It's generated using Rails's
head :okmethod (here).When I hit this endpoint with curl via tunnelto, the response does not seem to make it back out of the tunnel to me. curl hangs, and eventually stops itself with:
If I change my endpoint to return a 200 OK response with a non-empty body, everything works as expected.
In both cases the Request Inspector shows a 200 response being sent straightaway – but the header-only one seems to get lost in the tunnel.
This happens with both GET and POSTs. Not sure if it is related to #30.
I'm using tunnelto 0.1.12.
@agrinman commented on GitHub (Apr 18, 2021):
hey there, I just tried to repro this and it's not erroring for me. can you give it another go? the latest version is 1.1.14
@airblade commented on GitHub (Apr 19, 2021):
I tried again with tunnelto 0.1.14 and had the same problem as before.
I'm using curl 7.54.0 on macOS 10.14.6. I'm using the Catalina release of tunnelto from the releases page (I first tried to install it via Homebrew but the Rust build process pegged all my cores at close to 100% and after a while I killed the process).
@agrinman commented on GitHub (Apr 19, 2021):
do you have a sample rails server function i can try to reproduce locally?
brew should also be able to install the bottled version of it, so it wont need rust
@airblade commented on GitHub (Apr 20, 2021):
How do I get brew to do that?
Anyway, using this single-file Rails app:
...and running it via
rackup app.ru -p 8000;...and launching tunnelto with
tunnelto -s issue37;...and hitting the endpoint with
curl -i https://issue37.tunnelto.dev;...I can't reproduce the problem.
Hmm, there must be something about my real Rails app which is causing curl to hang. Weird. OK, well it looks like tunnelto is doing exactly what it should :)
@mrudult commented on GitHub (Mar 24, 2022):
For me, it stuck on OPTIONS request. Works fine with ngrok.