mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #518 from TeamPiped/pubsub-fix
Fix right pubsub url for subscription.
This commit is contained in:
commit
5723ca0795
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ public class PubSubHelper {
|
||||||
var buffer = new Buffer();
|
var buffer = new Buffer();
|
||||||
formBuilder.build().writeTo(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)
|
if (resp.status() != 202)
|
||||||
System.out.println("Failed to subscribe: " + resp.status() + "\n" + new String(resp.body()));
|
System.out.println("Failed to subscribe: " + resp.status() + "\n" + new String(resp.body()));
|
||||||
|
|
Loading…
Reference in a new issue