However, a request can have a content type as well as a response. I would have expected the response content type to be returned. However, the function returns the request content type.
I would deprecate contentType() in HttpRequestResponse. Users can call request().contentType() or response().contentType()
Montoya's
HttpRequestResponse
class has acontentType()
function:https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/http/message/HttpRequestResponse.html#contentType()
However, a request can have a content type as well as a response. I would have expected the response content type to be returned. However, the function returns the request content type.
I would deprecate
contentType()
inHttpRequestResponse
. Users can callrequest().contentType()
orresponse().contentType()