You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by ms...@apache.org on 2002/08/14 00:25:15 UTC
cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy HttpRequestHdr.java
mstover1 2002/08/13 15:25:15
Modified: src/protocol/http/org/apache/jmeter/protocol/http/proxy
HttpRequestHdr.java
Log:
More inclusive in search of headers for "Content-Type"
Revision Changes Path
1.2 +12 -3 jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
Index: HttpRequestHdr.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpRequestHdr.java 11 Aug 2002 19:24:52 -0000 1.1
+++ HttpRequestHdr.java 13 Aug 2002 22:25:15 -0000 1.2
@@ -171,7 +171,16 @@
public String getContentType()
{
- return (String)headers.get("Content-Type");
+ String contentType = (String)headers.get("Content-Type");
+ if(contentType == null)
+ {
+ contentType = (String)headers.get("Content-type");
+ }
+ if(contentType == null)
+ {
+ contentType = (String)headers.get("content-type");
+ }
+ return contentType;
}
public static MultipartUrlConfig isMultipart(String contentType)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>