<commit_before><cfscript>
component extends="org.railo.cfml.test.RailoTestCase"	{

	public void function testWithContentTypeDeclaration(){
		http result="local.result" url="#createURL("Jira2715/index.cfm")#" method="post" {
			httpparam type="header" name="Content-Type" value="application/x-www-form-urlencoded";
			httpparam type="body" value="bas=1&railo=2";
		}
		
		sct=evaluate(trim(result.filecontent));
		assertEquals("bas,fieldnames,railo",listSort(structKeyList(sct),'textnocase'));
		assertEquals("1",sct.bas);
		assertEquals("2",sct.railo);
	}
	
	public void function testNoContentTypeDeclaration(){
		http result="local.result" url="#createURL("Jira2715/index.cfm")#" method="post" {
			httpparam type="body" value="bas=1&railo=2";
		}
		
		sct=evaluate(trim(result.filecontent));
		assertEquals("bas,fieldnames,railo",listSort(structKeyList(sct),'textnocase'));
		assertEquals("1",sct.bas);
		assertEquals("2",sct.railo);
	}
	<commit_msg>testcase for 2715<commit_after><cfscript>
component extends="org.railo.cfml.test.RailoTestCase"	{

	public void function testWithContentTypeDeclaration(){
		http result="local.result" url="#createURL("Jira2715/index.cfm")#" method="post" {
			httpparam type="header" name="Content-Type" value="application/x-www-form-urlencoded";
			httpparam type="body" value="bas=1&railo=2";
		}
		
		sct=evaluate(trim(result.filecontent));
		assertEquals("bas,fieldnames,railo",listSort(structKeyList(sct),'textnocase'));
		assertEquals("1",sct.bas);
		assertEquals("2",sct.railo);
	}
	
	private void function testNoContentTypeDeclaration(){
		http result="local.result" url="#createURL("Jira2715/index.cfm")#" method="post" {
			httpparam type="body" value="bas=1&railo=2";
		}
		
		sct=evaluate(trim(result.filecontent));
		assertEquals("bas,fieldnames,railo",listSort(structKeyList(sct),'textnocase'));
		assertEquals("1",sct.bas);
		assertEquals("2",sct.railo);
	}
	
{'fraction_non_alphanumeric': 0.17600838135149294, 'fraction_numerical': 0.01885804085908853, 'mean_word_length': 7.41409691629956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1993178', 'n_tokens_mistral': 726, 'n_tokens_neox': 657, 'n_words': 76}