mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
small tweak to pubsubhubbub
This commit is contained in:
@@ -59,6 +59,8 @@ public class SubscriptionHandler {
|
|||||||
|
|
||||||
HttpClient client = HttpGetter.newClient();
|
HttpClient client = HttpGetter.newClient();
|
||||||
try {
|
try {
|
||||||
|
// make sure the feed push infos have been updated to the database
|
||||||
|
Thread.sleep(1000);
|
||||||
post.setEntity(new UrlEncodedFormEntity(nvp));
|
post.setEntity(new UrlEncodedFormEntity(nvp));
|
||||||
HttpResponse response = client.execute(post);
|
HttpResponse response = client.execute(post);
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class PubSubHubbubCallbackREST {
|
|||||||
@POST
|
@POST
|
||||||
@Consumes({ MediaType.APPLICATION_ATOM_XML, "application/rss+xml" })
|
@Consumes({ MediaType.APPLICATION_ATOM_XML, "application/rss+xml" })
|
||||||
public Response callback() {
|
public Response callback() {
|
||||||
log.info("content callback received");
|
|
||||||
try {
|
try {
|
||||||
byte[] bytes = IOUtils.toByteArray(request.getInputStream());
|
byte[] bytes = IOUtils.toByteArray(request.getInputStream());
|
||||||
FetchedFeed fetchedFeed = parser.parse(null, bytes);
|
FetchedFeed fetchedFeed = parser.parse(null, bytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user