Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3150

Allow specifying "Accept" type for REST server for byte array values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.3.0.Final
    • 5.2.6.Final, 5.3.0.Final
    • Server
    • None

      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.

            mgencur Martin Gencur
            mgencur Martin Gencur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: