[ ant-contrib-Bugs-1680603 ] GetMethodTask and HeadMethodTask implemented with PostMethod

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Bugs item #1680603, was opened at 2007-03-14 13:51
Message generated for change (Comment added) made by andreasfreier
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1680603&group_id=36177

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: GetMethodTask and HeadMethodTask implemented with PostMethod

Initial Comment:
Hi,

the classes net.sf.antcontrib.net.httpclient.GetMethodTask and net.sf.antcontrib.net.httpclient.HeadMethodTask return both a PostMethod object from the method createNewMethod.

Changing PostMethod to GetMethod/HeadMethod in import and in createNewMethod itsels seems to fix the bug.

Both changes are attached as files.


Best regards


Andreas Freier

----------------------------------------------------------------------

Comment By: Andreas Freier (andreasfreier)
Date: 2007-03-14 13:54

Message:
Logged In: YES 
user_id=1743377
Originator: NO

Sorry, here the another file:

package net.sf.antcontrib.net.httpclient;

import org.apache.commons.httpclient.HttpMethodBase;
import org.apache.commons.httpclient.methods.HeadMethod;

public class HeadMethodTask
	extends AbstractMethodTask {

	protected HttpMethodBase createNewMethod() {
		return new HeadMethod();
	}
}

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1680603&group_id=36177

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.