incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gert cuykens (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-1269) ETag == Etag
Date Thu, 01 Sep 2011 21:46:09 GMT
ETag == Etag
------------

                 Key: COUCHDB-1269
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1269
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
    Affects Versions: 1.1, 1.2
         Environment: linux
            Reporter: gert cuykens
            Priority: Trivial


ETag is spelled differently on attachment headers?

#!/bin/bash

HEAD=`curl -sIX HEAD http://gert.iriscouch.com/www/test`
echo "$HEAD"
if [[ $HEAD =~ Etag:\ \"(.*)\" ]]; then
 echo "${BASH_REMATCH[1]}"
fi

HEAD=`curl -sIX HEAD http://gert.iriscouch.com/www/test/user.png`
echo "$HEAD"
if [[ $HEAD =~ Etag:\ \"(.*)\" ]]; then
 echo "${BASH_REMATCH[1]}"
fi

HTTP/1.1 200 OK
Server: CouchDB/1.1.0 (Erlang OTP/R14B03)
Etag: "2-bd7278b9cc8b0ddaf7c863102f42f246"
Date: Thu, 01 Sep 2011 19:47:02 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 207
Cache-Control: must-revalidate

2-bd7278b9cc8b0ddaf7c863102f42f246

HTTP/1.1 200 OK
Server: CouchDB/1.1.0 (Erlang OTP/R14B03)
ETag: "2-bd7278b9cc8b0ddaf7c863102f42f246"
Date: Thu, 01 Sep 2011 19:47:03 GMT
Content-Type: image/png
Content-MD5: SS+3YnbRbRQ4uiJKcnFkdA==
Content-Length: 4003
Cache-Control: must-revalidate
Accept-Ranges: bytes

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message