Created
September 7, 2013 03:09
-
-
Save ingydotnet/6472496 to your computer and use it in GitHub Desktop.
api.github.com reports the same ETag value for different response values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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