-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
HTTP in cascadeproxy example returns Proxy Authentication Required #306
Comments
@liudanking WDYT? |
I will check it asap
获取 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
收件人: Gerard Braad <notifications@github.com>
发送时间: 星期五, 八月 10, 2018 13:45
收件人: elazarl/goproxy
抄送: Danieliu; Mention
主题: Re: [elazarl/goproxy] HTTP in cascadeproxy example returns Proxy Authentication Required (#306)
@liudanking<https://github.com/liudanking> WDYT?
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#306 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACi2OI1E4S7LRa04gAuM031v6zt71DJtks5uPR3rgaJpZM4V3nz2>.
|
Hi @gbraad, the reason is that the middle proxy removes the auth header: https://github.com/elazarl/goproxy/blob/master/proxy.go#L88 add @elazarl |
This should be configurable, as it is not always wanted to remove headers... especially in this case it should be passed on. Note: this was changed as part of #78
Maybe not... :-s Can this be made configurable... ? |
This is still not fixed and could be fixed with @gbraad proposed changes. |
When setting
goproxy/examples/cascadeproxy/main.go
Line 85 in 947c36d
as
execution results in
While the headers are set in
middleproxy
using:goproxy/examples/cascadeproxy/main.go
Lines 74 to 77 in 947c36d
goproxy/examples/cascadeproxy/main.go
Lines 22 to 24 in 947c36d
they do not seem to arrive at the
endproxy
.The text was updated successfully, but these errors were encountered: