mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-27 05:05:51 +03:00
[GH-ISSUE #493] 401 error for multipart uploads, other requests work #327
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#327
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hutattedonmyarm on GitHub (Sep 29, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/493
Description:
I'm getting a 401 response trying to upload a file. Other requests (GET, "regular" POST, etc work perfectly fine.
So this request:
throws a 401, while
completes successfully.
Additionally an error is logged during the failing request:
OAuth Provider? (Twitter, Github, ..):
OpenStreetMap
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
9.3 (Swift 4.1)
9.0 (Swift 4.0)
9.0 (Swift 3.2)
8.x (Swift 3.x)
8.0 (Swift 2.3)
7.3.1
other: 10.0 (Swift 4.2)
objective c
@phimage commented on GitHub (Sep 29, 2018):
I see no difference between the two codes posted
with my tiny mobile phone screen
Where is the difference?
@hutattedonmyarm commented on GitHub (Sep 29, 2018):
I copied the wrong code block. Now there should be a difference
@hutattedonmyarm commented on GitHub (Oct 1, 2018):
I wrote an extension to make it work. Some of it is simply duplicating already existing functionality and could probably be replaced by the existing ones, but I haven't gotten around to refining it yet.