-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont allow unacceptable IO objects in update_with_media
We ran into a bug where a 401 error was returned for any File-like object that didn't have a to_io method defined (ActionPack::HttpUploadedFile in this case). Since the contract of this object is to have a to_io method otherwise it will be included in the oauth signature (cause of 401) then we should short circuit early on when we know this is supposed to be a File like object. Later on we aren't sure exactly when we include/exclude params from the signature.
- Loading branch information
1 parent
3161fc5
commit f22f1e2
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters