fix(deploy): CF API 空响应体按 2xx 计成功——workers/domains DELETE 返回 200 无体 - #68
Merged
Conversation
真机第三发现:解绑 Custom Domain 的 DELETE 请求返回 200 空 body, res.json() 抛 'Unexpected end of JSON input' 中断部署(core 主域的 解绑已生效、hello 的未执行,半清理状态)。toResult 统一处理:空体按 状态码判定,非 JSON 体降级为带说明的错误。 Signed-off-by: huangyinghui <18666119673@163.com>
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.
真机第三发现
解绑 Custom Domain 的 DELETE 请求返回 200 空 body,
res.json()抛Unexpected end of JSON input中断部署——core 主域解绑已生效、hello 未执行,留下半清理状态。修法:
toResult统一处理——空体按 HTTP 状态码判定,非 JSON 体降级为带说明的错误。测试补空体 DELETE 用例(59 用例全绿)。