Skip to content

Commit 747ae17

Browse files
authored
Changing Accept header to request nometadata
If we're going to give an example, I think we should give a complete and good one. In my opinion such a sample should show to request nometadata instead of verbose from our endpoints. It does make quite a huge difference in data size. I haven't ran across any case yet where the metadata was actually being used.
1 parent b634226 commit 747ae17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Following sample is in c# format, but the similar User Agent information is reco
144144
HttpWebRequest endpointRequest = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + "/_api/web/lists");
145145
endpointRequest.Method = "GET";
146146
endpointRequest.UserAgent = "NONISV|Contoso|GovernanceCheck/1.0";
147-
endpointRequest.Accept = "application/json;odata=verbose";
147+
endpointRequest.Accept = "application/json;odata=nometadata";
148148
endpointRequest.Headers.Add("Authorization", "Bearer " + accessToken);
149149
HttpWebResponse endpointResponse = (HttpWebResponse)endpointRequest.GetResponse();
150150
```

0 commit comments

Comments
 (0)