Fix error when Instagram return lowercase "content-location" #19
Fix error when Instagram return lowercase "content-location" #19zztalker wants to merge 1 commit intowkoot:masterfrom
Conversation
|
There is the error in design because of the response of request module already lowercase headers. And enough to make one check ('content-location' in response). |
|
Why not Anyway - the Instagram v1 API this library uses, has been deprecated and will be discontinued. |
|
Because response['Content-Location'] rise KeyError exception. |
|
The point is that it should not fail silently; either |
Catch a strange error - instagram return in headers lowercased "content-location".