Skip to content

Commit

Permalink
fix: 不是每个请求都需要的 Header
Browse files Browse the repository at this point in the history
  • Loading branch information
tangge233 committed Nov 8, 2024
1 parent 5d16cf2 commit b6cc6c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plain Craft Launcher 2/Modules/ModSecret.vb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ Friend Module ModSecret
If AddReferer Then
Client.Headers("Referer") = "http://" & VersionCode & ".pcl2.open.server/"
End If
Client.Headers("x-api-key") = CurseForgeAPIKey
If Url.Contains("api.curseforge") Then
Client.Headers("x-api-key") = CurseForgeAPIKey
End If
End Sub
''' <summary>
''' 设置 Headers 的 UA、Referer。
Expand Down

0 comments on commit b6cc6c1

Please sign in to comment.