diff --git a/Octokit/Clients/UserGpgKeysClient.cs b/Octokit/Clients/UserGpgKeysClient.cs
index f7a940e6..5feeac2f 100644
--- a/Octokit/Clients/UserGpgKeysClient.cs
+++ b/Octokit/Clients/UserGpgKeysClient.cs
@@ -43,6 +43,8 @@ namespace Octokit
/// A of s for the current user.
public Task> GetAllForCurrent(ApiOptions options)
{
+ Ensure.ArgumentNotNull(options, "options");
+
return ApiConnection.GetAll(ApiUrls.GpgKeys(), null, AcceptHeaders.GpgKeysPreview, options);
}
@@ -69,7 +71,9 @@ namespace Octokit
/// The newly created .
public Task Create(NewGpgKey newGpgKey)
{
- return ApiConnection.Post(ApiUrls.GpgKeys(), newGpgKey);
+ Ensure.ArgumentNotNull(newGpgKey, "newGpgKey");
+
+ return ApiConnection.Post(ApiUrls.GpgKeys(), newGpgKey, AcceptHeaders.GpgKeysPreview);
}
///
@@ -82,7 +86,7 @@ namespace Octokit
///
public Task Delete(int id)
{
- return ApiConnection.Delete(ApiUrls.GpgKeys(id));
+ return ApiConnection.Delete(ApiUrls.GpgKeys(id), null, AcceptHeaders.GpgKeysPreview);
}
}
}
\ No newline at end of file