Skip to content

Commit

Permalink
fix(fcm): correct the iidEndpoint endpoints used for topic management
Browse files Browse the repository at this point in the history
  • Loading branch information
rueian committed Feb 21, 2020
1 parent aa4e7a4 commit a5e5cf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions messaging/topic_mgt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

const (
iidEndpoint = "https://iid.googleapis.com/iid/v1"
iidSubscribe = ":batchAdd"
iidUnsubscribe = ":batchRemove"
iidSubscribe = "batchAdd"
iidUnsubscribe = "batchRemove"
)

var iidErrorCodes = map[string]struct{ Code, Msg string }{
Expand Down Expand Up @@ -164,7 +164,7 @@ func (c *iidClient) makeTopicManagementRequest(ctx context.Context, req *iidRequ

request := &internal.Request{
Method: http.MethodPost,
URL: fmt.Sprintf("%s/%s", c.iidEndpoint, req.op),
URL: fmt.Sprintf("%s:%s", c.iidEndpoint, req.op),
Body: internal.NewJSONEntity(req),
}
var result iidResponse
Expand Down

0 comments on commit a5e5cf5

Please sign in to comment.