couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-2409) Respect wildcard in Accept header
Date Sat, 25 Oct 2014 14:06:34 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexander Shorin updated COUCHDB-2409:
--------------------------------------
    Affects Version/s: 2.0.0

> Respect wildcard in Accept header
> ---------------------------------
>
>                 Key: COUCHDB-2409
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2409
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: HTTP Interface
>    Affects Versions: 2.0.0
>            Reporter: Alexander Shorin
>
> CouchDB 2.0:
> {code}
> http -v 'http://localhost:15984/hashes/000a9c21?open_revs=all' 'Accept:multipart/*'
> GET /hashes/000a9c21?open_revs=all HTTP/1.1
> Accept: multipart/*
> Accept-Encoding: gzip, deflate
> Connection: keep-alive
> Host: localhost:15984
> User-Agent: HTTPie/0.8.0
> HTTP/1.1 200 OK
> Cache-Control: must-revalidate
> Content-Type: text/plain; charset=utf-8
> Date: Sat, 25 Oct 2014 14:05:26 GMT
> Server: CouchDB/40c5c85 (Erlang OTP/17)
> Transfer-Encoding: chunked
> X-Couch-Request-ID: efefbef5
> X-CouchDB-Body-Time: 0
> [{"ok":{"_id":"000a9c21","_rev":"1-eb2a07b46a7e7b893faeebdccb37f74a","created_at":[2014,6,21,9,54,7],"sha256":"000a9c219d34e5c74c02af04244cab7c6ee00a41a1a4edb58ad6988e5f88363e","type":"hash","dhash64":"6367439b8b81a191","dhash256":"ae964c9c1e2c76982e99ceb0cff2cfc18ed8cea053a067c04bc64b660b64c364","md5":"c55a75d503c60e5e44ca9494be4650de"}}]
> {code}
> CouchDB 1.x:
> {code}
> http -v 'http://localhost:5984/hashes/000a9c21?open_revs=all' 'Accept:multipart/*'
> GET /hashes/000a9c21?open_revs=all HTTP/1.1
> Accept: multipart/*
> Accept-Encoding: gzip, deflate
> Connection: keep-alive
> Host: localhost:5984
> User-Agent: HTTPie/0.8.0
> HTTP/1.1 200 OK
> Content-Type: multipart/mixed; boundary="e0d5bc78c426f7c4d5020ecbb4db524b"
> Date: Sat, 25 Oct 2014 14:04:51 GMT
> Server: CouchDB/1.7.0+build.fauxton-257-gade9dae (Erlang OTP/17)
> Transfer-Encoding: chunked
> --e0d5bc78c426f7c4d5020ecbb4db524b
> Content-Type: application/json
> {"_id":"000a9c21","_rev":"1-eb2a07b46a7e7b893faeebdccb37f74a","created_at":[2014,6,21,9,54,7],"sha256":"000a9c219d34e5c74c02af04244cab7c6ee00a41a1a4edb58ad6988e5f88363e","type":"hash","dhash64":"6367439b8b81a191","dhash256":"ae964c9c1e2c76982e99ceb0cff2cfc18ed8cea053a067c04bc64b660b64c364","md5":"c55a75d503c60e5e44ca9494be4650de"}
> --e0d5bc78c426f7c4d5020ecbb4db524b--
> {code}



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

Mime
View raw message