Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: HTTPBody asString property always returns nil #90

Open
NicFontana opened this issue Jan 30, 2024 · 0 comments
Open

[Bug]: HTTPBody asString property always returns nil #90

NicFontana opened this issue Jan 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NicFontana
Copy link

Platform Version

iOS 17.2

SDK Version

1.8.3

Xcode Version

Xcode 15.2

Steps To Reproduce

Let's suppose we do have a struct representing a form:

struct MyForm: Encodable {
    let numbers: [Int]
}

if we create a HTTPBody object by passing an instance of MyForm:

let form = try! HTTPBody.form(object: MyForm(numbers: [1, 2, 3]))

calling form.asString always returns nil.

Expected Behavior

form.asString should returns a String representing the MyForm instance we have passed.

Actual Incorrect Behavior

form.asString always returns nil.

@NicFontana NicFontana added the bug Something isn't working label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant