Skip to content

Commit

Permalink
e2e, doesnt work yet
Browse files Browse the repository at this point in the history
  • Loading branch information
daytime-em committed Apr 25, 2024
1 parent 6bb9d95 commit 712334d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/MuxPlayerSwift/Fairplay/FairplaySessionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class FairplaySessionManager {
print("SPC base64:", encodedSpcMessage)
var postData = String(format: "spc=%@", encodedSpcMessage)

Check warning on line 74 in Sources/MuxPlayerSwift/Fairplay/FairplaySessionManager.swift

View workflow job for this annotation

GitHub Actions / Run Unit Tests

variable 'postData' was never mutated; consider changing to 'let' constant

// QUERY PARAMS
request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
request.setValue(String(format: "%lu", request.httpBody?.count ?? 0), forHTTPHeaderField: "Content-Length")

request.httpMethod = "POST"
request.httpBody = postData.data(using: .utf8, allowLossyConversion: true)
Expand Down

0 comments on commit 712334d

Please sign in to comment.