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

PIKACHUIM merged 1 commit into
OpenListTeam:mainfrom
SheltonZhu:fix/115-driver-capacity-and-cdn-403

Conversation

@SheltonZhu

@SheltonZhu SheltonZhu commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

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
@jyxjjj jyxjjj linked an issue May 31, 2026 that may be closed by this pull request
8 of 9 tasks
lyy2005a2 pushed a commit to lyy2005a2/OpenList that referenced this pull request Jun 4, 2026
- 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.
EnterTang pushed a commit to EnterTang/OpenList that referenced this pull request Jul 12, 2026
- 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.
cjd6568358 pushed a commit to cjd6568358/OpenList-zig that referenced this pull request Oct 18, 2026
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants