Skip to content

Commit

Permalink
Merge pull request #28 from mario/master
Browse files Browse the repository at this point in the history
Add OCS api header to quota request
  • Loading branch information
AndyScherzinger authored Jan 16, 2017
2 parents 06578e6 + 5c11f19 commit 5391d98
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
String url = client.getBaseUri() + OCS_ROUTE + credentials.getUsername();

get = new GetMethod(url);
get.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);
get.setQueryString(new NameValuePair[]{new NameValuePair("format", "json")});
status = client.executeMethod(get);

Expand Down

0 comments on commit 5391d98

Please sign in to comment.