mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 08:25:54 +03:00
[GH-ISSUE #343] 请求头里没有path的问题 #261
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#261
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 @lixiaomeng8520 on GitHub (Dec 23, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/343
一些客户端,比如java的URL请求或者早期的curl请求时,header里不会自动在最后加上斜杠,比如
curl http://www.baidu.com,打印出的header为GET http://www.baidu.com HTTP/1.1,这时如果通过goproxy代理,则请求头会变为
GET HTTP/1.1,path信息为空,服务端会返回 400。
解决办法有2个,
希望作者能处理第二种。
@snail007 commented on GitHub (Dec 23, 2019):
多谢反馈,v8.8已经做了兼容处理,这种情况会自动加上/
@lixiaomeng8520 commented on GitHub (Jan 6, 2020):
@snail007 OK