Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugin
In directory usw-pr-cvs1:/tmp/cvs-serv18269/lib/HTTP/WebTest/Plugin
Modified Files:
SetRequest.pm
Log Message:
Send correct Content_Type for POST requests
Index: SetRequest.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugin/SetRequest.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SetRequest.pm 12 Feb 2002 13:09:18 -0000 1.6
--- SetRequest.pm 11 May 2002 18:47:09 -0000 1.7
***************
*** 143,146 ****
--- 143,149 ----
if($method =~ /^POST$/i) {
$request->method('POST');
+ # ensure correct default value for content-type header
+ $request->header(Content_Type =>
+ 'application/x-www-form-urlencoded');
} else {
$request->method('GET');
|