Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created September 7, 2013 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ingydotnet/6472496 to your computer and use it in GitHub Desktop.
Save ingydotnet/6472496 to your computer and use it in GitHub Desktop.
api.github.com reports the same ETag value for different response values
> curl --request GET 'https://api.github.com/users/diakopter/followers' --dump-header head --output out --silent; sha1sum out; echo "$(grep -Ec '^ *\{' out) followers"; grep -E '^(Status|ETag):' head; echo
2d6184a9d7a60dd9f34b3591b1956230f894ee96 out
11 followers
Status: 200 OK
ETag: "c41d02be38c503daa6302f1920caf06f"
> git hub follow diakopter
'git hub follow' command successful
> curl --request GET 'https://api.github.com/users/diakopter/followers' --dump-header head --output out --silent; sha1sum out; echo "$(grep -Ec '^ *\{' out) followers"; grep -E '^(Status|ETag):' head; echo
acb8c37385e72b7de3cb6fd9ab7c2483857378ce out
12 followers
Status: 200 OK
ETag: "c41d02be38c503daa6302f1920caf06f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment