-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Crowdin
-
Tags:
-
Sprint:nxfit 9.3.7
-
Story Points:2
As the Content-Type header can contain additional information such as charset, we should check that the Content-Type header starts with text/xml instead of a strict equality.
Traceback (most recent call last): 08:34:36 File "tools-nuxeo-crowdin/jenkins/../crowdin_updater.py", line 139, in <module> 08:34:36 main() 08:34:36 File "tools-nuxeo-crowdin/jenkins/../crowdin_updater.py", line 134, in main 08:34:36 cu.upload(args.inputfile, parentdir=args.parentdir) 08:34:36 File "tools-nuxeo-crowdin/jenkins/../crowdin_updater.py", line 90, in upload 08:34:36 raise ValueError('Upload failed: %s' % res[1]) 08:34:36 ValueError: Upload failed: Wrong response content type: text/xml;charset=UTF-8