[ 
https://issues.apache.org/jira/browse/WW-4558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981992#comment-14981992
 ] 

Lukasz Lenart commented on WW-4558:
-----------------------------------

The problem is that the {{contentType}} is used in both directions - to read 
incoming request and to populate response - and basically just two types are 
supported

{noformat}
"Content type must be 'application/json' or 'application/json-rpc'. Ignoring 
request with content type ", contentType
{noformat}

I think this field can be dropped

> contentType override ignored for JSONInterceptor
> ------------------------------------------------
>
>                 Key: WW-4558
>                 URL: https://issues.apache.org/jira/browse/WW-4558
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.3.24
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>             Fix For: 2.3.x
>
>
> JSONInterceptor takes a contentType parameter, but as far as I can tell does 
> nothing with it.  I would think a reasonable way to use it would be to have 
> it used if available, rather than the content type from the request so that 
> the interceptor can be used when receiving a JSON post from a third party 
> that does not set the correct content type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to