Skip to content

Commit

Permalink
fix application/x-zip-compressed ipa mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Sep 17, 2015
1 parent e41ebc1 commit 90756ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MobSF/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def Upload(request):
md5=handle_uploaded_file(request.FILES['file'],'.zip')
response_data['url'] = 'StaticAnalyzer/?name='+request.FILES['file'].name+'&type=zip&checksum='+md5
response_data['status'] = 'success'
elif ((file_type=="application/octet-stream" or file_type=="application/x-itunes-ipa") and request.FILES['file'].name.endswith('.ipa')): #iOS Binary
elif ((file_type=="application/octet-stream" or file_type=="application/x-itunes-ipa" or file_type=="application/x-zip-compressed") and request.FILES['file'].name.endswith('.ipa')): #iOS Binary
if platform.system()=="Darwin":
md5=handle_uploaded_file(request.FILES['file'],'.ipa')
response_data['url'] = 'StaticAnalyzer_iOS/?name='+request.FILES['file'].name+'&type=ipa&checksum='+md5
Expand Down

0 comments on commit 90756ef

Please sign in to comment.