mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
allow string as post body data type
This commit is contained in:
parent
791b033efc
commit
4b4f76392d
2 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ extension JSContext {
|
|||
if(method != "GET")
|
||||
{
|
||||
// Ensure body is properly serialized
|
||||
processedBody = body ? JSON.stringify(body) : null
|
||||
processedBody = (body && (typeof body === 'object')) ? JSON.stringify(body) : (body || null)
|
||||
}
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
|
|
|
|||
|
|
@ -738,7 +738,7 @@ struct MediaInfoView: View {
|
|||
if let currTitle = streams[index]["title"] as? String
|
||||
{
|
||||
title = currTitle
|
||||
streamUrl = (streams[index]["streamUrl"] as? String)!
|
||||
streamUrl = (streams[index]["streamUrl"] as? String) ?? ""
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue