Skip to content

Commit

Permalink
add Content-Type for PUT/POST gocurl request (fix #5140) (#5141)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaina authored Dec 16, 2021
1 parent 39207bd commit 0833291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/CRABClient/CrabRestInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def makeRequest(self, uri=None, data=None, verb='GET'):
command += '/cvmfs/cms.cern.ch/cmsmon/gocurl -verbose 2 -method {0}'.format(verb)
command += ' -header "User-Agent: %s/%s"' % (self['userAgent'], self['version'])
command += ' -header "Accept: */*"'
if verb in ['POST', 'PUT']:
command += ' -header "Content-Type: application/x-www-form-urlencoded"'
command += ' -data "@%s"' % path
command += ' -cert "%s"' % self['cert']
command += ' -key "%s"' % self['key']
Expand Down

0 comments on commit 0833291

Please sign in to comment.