[infinispan-issues] [JBoss JIRA] (ISPN-3150) Allow specifying "Accept" type for REST server for byte array values

Martin Gencur (JIRA) jira-events at lists.jboss.org
Thu Jun 6 06:52:54 EDT 2013


     [ https://issues.jboss.org/browse/ISPN-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Gencur updated ISPN-3150:
--------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/1879

    
> Allow specifying "Accept" type for REST server for byte array values
> --------------------------------------------------------------------
>
>                 Key: ISPN-3150
>                 URL: https://issues.jboss.org/browse/ISPN-3150
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Server
>            Reporter: Martin Gencur
>            Assignee: Galder Zamarreño
>             Fix For: 5.3.0.Final
>
>
> Currently, byte array values are sent to the client with Content-type:application/x-java-serialized-object
> See https://github.com/infinispan/infinispan/blob/master/server/rest/src/main/scala/org/infinispan/rest/Server.scala#L177
> It would be nice if the default value for byte arrays was application/octet-stream because serializable types are already being sent back as application/x-java-serialized-object, which covers the case when a custom object (not byte array) is put in the cache. Or allow users to specify octet-stream by "Accept" HTTP header.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list