It looks like we're hard-coding 'application/json' in the content-type header. In most cases, this works fine, but there are a few where we need 'multipart/form-data' for file uploads. If we want these to work within CVPRAC, we need a way to bypass the defaults.
# Save proper headers
self.headers = {'Accept': 'application/json',
'Content-Type': 'application/json'}
It looks like we're hard-coding 'application/json' in the content-type header. In most cases, this works fine, but there are a few where we need 'multipart/form-data' for file uploads. If we want these to work within CVPRAC, we need a way to bypass the defaults.
Example: cvpbackuprestore/importBackup.do