Loading go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +4 −2 Original line number Diff line number Diff line Loading @@ -1107,6 +1107,8 @@ func applicationsSubscriptionsPUT(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, jsonSub) } var HrefUrl string func applicationsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) { log.Info("applicationsSubscriptionsPOST") Loading Loading @@ -1192,9 +1194,9 @@ func applicationsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) { errHandlerProblemDetails(w, "Failed to create subscription", http.StatusInternalServerError) return } hrefUrl := hostUrl.String() + basePath + "applications/" + appId + "/subscriptions/" + subId HrefUrl = hostUrl.String() + basePath + "applications/" + appId + "/subscriptions/" + subId // Send response w.Header().Set("Location", hrefUrl) w.Header().Set("Location", HrefUrl) w.WriteHeader(http.StatusCreated) fmt.Fprint(w, jsonSub) } Loading go-apps/meep-app-enablement/server/mae_test.go +621 −4 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +4 −2 Original line number Diff line number Diff line Loading @@ -1107,6 +1107,8 @@ func applicationsSubscriptionsPUT(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, jsonSub) } var HrefUrl string func applicationsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) { log.Info("applicationsSubscriptionsPOST") Loading Loading @@ -1192,9 +1194,9 @@ func applicationsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) { errHandlerProblemDetails(w, "Failed to create subscription", http.StatusInternalServerError) return } hrefUrl := hostUrl.String() + basePath + "applications/" + appId + "/subscriptions/" + subId HrefUrl = hostUrl.String() + basePath + "applications/" + appId + "/subscriptions/" + subId // Send response w.Header().Set("Location", hrefUrl) w.Header().Set("Location", HrefUrl) w.WriteHeader(http.StatusCreated) fmt.Fprint(w, jsonSub) } Loading
go-apps/meep-app-enablement/server/mae_test.go +621 −4 File changed.Preview size limit exceeded, changes collapsed. Show changes