Skip to content

fix(115): fix capacity display and CDN 403 errors#2510

Merged
PIKACHUIM merged 1 commit into
OpenListTeam:mainfrom
SheltonZhu:fix/115-driver-capacity-and-cdn-403
May 25, 2026
Merged

fix(115): fix capacity display and CDN 403 errors#2510
PIKACHUIM merged 1 commit into
OpenListTeam:mainfrom
SheltonZhu:fix/115-driver-capacity-and-cdn-403

Conversation

@SheltonZhu
Copy link
Copy Markdown
Contributor

@SheltonZhu SheltonZhu commented May 25, 2026

Summary

Changes

drivers/115/driver.go

  • Added import for base package
  • Added fallback to base.UserAgent when args.Header.Get("User-Agent") is empty

go.mod & go.sum

  • Updated github.com/SheltonZhu/115driver from v1.2.3 to v1.3.3

Root Cause

The 115 CDN API returns 403 with error message "no cookie value" when:

  1. The User-Agent header is empty (common in background copy tasks)
  2. The User-Agent doesn't match what was used to generate the download URL

This fix ensures a consistent browser User-Agent is used for both download link generation and subsequent CDN requests.

Test plan

  • Build succeeds with updated 115driver v1.3.3
  • Verify 115 storage capacity displays correctly
  • Test 115 Cloud -> PikPak copy no longer returns 403
  • Test direct download from 115 works correctly

- Fix OpenListTeam#2343: update 115driver to v1.3.3 to handle float size values
- Fix OpenListTeam#2349, OpenListTeam#2356, OpenListTeam#2502: use base.UserAgent as fallback when User-Agent header is empty

The 115 CDN returns 403 "no cookie value" when the User-Agent header
is empty or doesn't match the cookie. This fix ensures a consistent
browser User-Agent is used for download link generation.
@PIKACHUIM PIKACHUIM merged commit ffbbc1c into OpenListTeam:main May 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] v4.2.1/0 115网盘 CDN 请求返回 403 no cookie value [BUG] 115驱动无法显示容量

2 participants