diff --git a/pages.go b/pages.go index 909f1db3f..7b0f503ed 100644 --- a/pages.go +++ b/pages.go @@ -97,7 +97,7 @@ func (s *PagesService) GetPages(gid interface{}, options ...RequestOptionFunc) ( // https://docs.gitlab.com/ee/api/pages.html#update-pages-settings-for-a-project type UpdatePagesOptions struct { PagesUniqueDomainEnabled *bool `url:"pages_unique_domain_enabled,omitempty" json:"pages_unique_domain_enabled,omitempty"` - PagesHttpsOnly *bool `url:"pages_https_only,omitempty" json:"pages_https_only,omitempty"` + PagesHTTPSOnly *bool `url:"pages_https_only,omitempty" json:"pages_https_only,omitempty"` } // UpdatePages updates Pages settings for a project. The user must have diff --git a/pages_test.go b/pages_test.go index 6e2e0c956..4101caf07 100644 --- a/pages_test.go +++ b/pages_test.go @@ -116,7 +116,7 @@ func TestUpdatePages(t *testing.T) { p, resp, err := client.Pages.UpdatePages(2, UpdatePagesOptions{ PagesUniqueDomainEnabled: Ptr(true), - PagesHttpsOnly: Ptr(false), + PagesHTTPSOnly: Ptr(false), }) require.NoError(t, err) require.NotNil(t, resp)