Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for etag/if-none-match #14

Merged
merged 1 commit into from
Apr 4, 2017
Merged

Add support for etag/if-none-match #14

merged 1 commit into from
Apr 4, 2017

Conversation

nickvergessen
Copy link
Member

curl -k -v https://admin:admin@nextcloud12.local/ocs/v2.php/apps/external/api/v1
...
< HTTP/1.1 200 OK
< ETag: d751713988987e9331980363e24189ce
< Content-Length: 138
...
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>200</statuscode>
  <message>OK</message>
 </meta>
 <data/>
</ocs>
curl -k -v -H "If-None-Match: d751713988987e9331980363e24189ce" https://admin:admin@nextcloud12.local/ocs/v2.php/apps/external/api/v1
...
> If-None-Match: d751713988987e9331980363e24189ce
> 
< HTTP/1.1 304 Not Modified
...
* Excess found in a non pipelined read: excess = 132 url = /ocs/v2.php/apps/external/api/v1 (zero-length body)

Fix #13

@mario please confirm

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen merged commit ba96dc6 into master Apr 4, 2017
@nickvergessen nickvergessen deleted the etag branch April 4, 2017 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants