Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyKJohnson committed Dec 13, 2016
1 parent d8a6261 commit db49b39
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Sources/CKURLRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ class CKURLRequest: NSObject {

if let properties = requestProperties {

// While JSON Parsing doesn't support Swift Types on Linux, Use Jay
let jsonData: Data = try! JSONSerialization.data(withJSONObject: properties, options: [])

// let data = try! Jay(formatting: .prettified).dataFromJson(any: properties) // [UInt8]
// let jsonData = Data(bytes: data)
let jsonData: Data = try! JSONSerialization.data(withJSONObject: properties.bridge(), options: [])

urlRequest.httpBody = jsonData
urlRequest.httpMethod = "POST"
Expand Down

0 comments on commit db49b39

Please sign in to comment.