-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Tested with v1.8.21
The following code:
node { httpRequest url: 'http://localhost:8666', httpMode: 'DELETE', requestBody: null, acceptType: 'NOT_SET', contentType: 'NOT_SET', customHeaders: [[name: 'Authorization', value: 'dummy=']], ignoreSslErrors: true, validResponseCodes: '100:600' }
produces the following request:
DELETE / HTTP/1.1 Authorization: dummy= Content-Length: 0 Content-Type: application/x-www-form-urlencoded Host: localhost:8666 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_91) Accept-Encoding: gzip,deflate
While the same with a GET:
node { httpRequest url: 'http://localhost:8666', httpMode: 'GET', requestBody: null, acceptType: 'NOT_SET', contentType: 'NOT_SET', customHeaders: [[name: 'Authorization', value: 'dummy=']], ignoreSslErrors: true, validResponseCodes: '100:600' }
produces:
GET / HTTP/1.1 Authorization: dummy= Host: localhost:8666 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_91) Accept-Encoding: gzip,deflate
I couldn't pinpoint exactly what part of the code is responsible from this.
This may or may not be related to https://issues.jenkins-ci.org/browse/JENKINS-40873
This would be solved if this issue was implemented: https://issues.jenkins-ci.org/browse/JENKINS-40043