[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
Wed May 29 10:59:54 EDT 2013


Martin Gencur created ISPN-3150:
-----------------------------------

             Summary: 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