|
@@ -312,13 +312,13 @@ func (s *cdnService) RenewPlan(ctx context.Context, req v1.RenewalPlan) error {
|
|
|
func (s *cdnService) CreateWebsite(ctx context.Context, req v1.Website) (int64, error) {
|
|
|
var httpJSON, httpsJSON []byte
|
|
|
var err error
|
|
|
- if &req.HttpJSON != nil {
|
|
|
+ if req.HttpJSON.Listen != nil {
|
|
|
httpJSON, err = json.Marshal(req.HttpJSON)
|
|
|
if err != nil {
|
|
|
return 0, err
|
|
|
}
|
|
|
}
|
|
|
- if &req.HttpsJSON != nil {
|
|
|
+ if req.HttpsJSON.Listen != nil {
|
|
|
httpsJSON, err = json.Marshal(req.HttpsJSON)
|
|
|
if err != nil {
|
|
|
return 0, err
|