mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #151] 无法转发302跳转的http请求 #95
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#95
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 @dxvgef on GitHub (Nov 3, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/151
我用golang的iris框架在内网开发一个web应用,发现用了iris的ctx.Redirect()函数触发了302跳转,请求会无法转发到内网来,我在iris的日志里根本看不到有302跳转之后的地址请求,直接用内网IP访问就是正常的,之前用ngrok1.x也是正常的,目前排除到最后只可能是frp的问题了
@maodanp commented on GitHub (Nov 4, 2016):
ctx.Redirect()的跳转是否是web应用内的跳转,还是跳转到其他域名?@dxvgef commented on GitHub (Nov 4, 2016):
跳转到应用内同域名下的另一个url,还是用的/xxx/xxx这样的相对路径跳转的,没有记录日志
@maodanp commented on GitHub (Nov 5, 2016):
我这边写了个demo,测试内网跳转是没问题的,代码如下:
http response的设置?frps, frpc默认都有日志信息的,希望您能够提供下,尽量帮助我们排查问题@fatedier commented on GitHub (Nov 5, 2016):
@maodanp @dxvgef http 请求目前还没有日志,之后会考虑加上 access log。
@dxvgef commented on GitHub (Nov 7, 2016):
@maodanp 我跳转后是渲染了html文件,不是输出json字符串,我代码结构有点复杂,只贴一部份出来估计看不出什么,最主要的是我已经换回ngrok了,没法再重现bug了