-
Notifications
You must be signed in to change notification settings - Fork 134
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
print httpbody as a string? #94
Comments
if let data = r.request?.httpBody {
print(NSString(data: data, encoding: String.Encoding.utf8.rawValue))
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to upload a file using Just but getting a 500 from my server which I want to debug. I'm able to see the status code and the request headers but not the http body. The description of the body shows there is content (from the debugger):
but the actual content won't print:
Any thoughts on how to look at this? I'm basically trying to make sure the body is properly formed and the source code looks fine.
My code looks like this:
where the localFileUrl is:
The text was updated successfully, but these errors were encountered: