fix(alicloud_cs): remove incompatible Connection header#84
Open
Copilot wants to merge 6 commits into
Open
Conversation
…h2 requests Agent-Logs-Url: https://github.com/OpenListTeam/OpenList-APIPages/sessions/80ed8003-b1f6-4dfd-b485-645bf524f3e3 Co-authored-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
…thod Agent-Logs-Url: https://github.com/OpenListTeam/OpenList-APIPages/sessions/80ed8003-b1f6-4dfd-b485-645bf524f3e3 Co-authored-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenListTeam/OpenList-APIPages/sessions/80ed8003-b1f6-4dfd-b485-645bf524f3e3 Co-authored-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenListTeam/OpenList-APIPages/sessions/80ed8003-b1f6-4dfd-b485-645bf524f3e3 Co-authored-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jyxjjj
May 16, 2026 15:24
View session
jyxjjj
previously requested changes
May 16, 2026
Member
jyxjjj
left a comment
There was a problem hiding this comment.
等我白天改,Copilot真不如GPT,这样改动还不如直接删下请求头,看来是我提示词说太多了
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
jyxjjj
approved these changes
May 17, 2026
Connection header by protocol and apply across AliCloud auth requestsConnection header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
alicloud_cs.tswas sending HTTP/1.x hop-by-hop headers (not RFC8441-compatible) on request paths that may use HTTP/2.This change makes header construction protocol-aware: only non-HTTPS paths retain
Connection: keep-alive; HTTPS paths omit it.Problem scope
Connection.What changed
AlipanQRLogin(isHttpsUrl).getHeaders(targetUrl)so header decisions are made per request target.getOAuthUrl,getLoginPage,generateQRCode,queryQRStatus) to pass their target URL into the header builder.Connection: keep-aliveonly there.Resulting behavior
Connectionheader.Connection: keep-alivepreserved.