Fix right pubsub url for subscription.

This commit is contained in:
Kavin 2023-01-31 20:06:57 +00:00
parent 1d46fb31e2
commit 34231631c9
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class PubSubHelper {
var buffer = new Buffer();
formBuilder.build().writeTo(buffer);
var resp = ReqwestUtils.fetch(callback, "POST", buffer.readByteArray(), Map.of());
var resp = ReqwestUtils.fetch(Constants.PUBSUB_HUB_URL, "POST", buffer.readByteArray(), Map.of());
if (resp.status() != 202)
System.out.println("Failed to subscribe: " + resp.status() + "\n" + new String(resp.body()));