small tweak to pubsubhubbub

This commit is contained in:
Athou
2013-05-21 11:36:01 +02:00
parent a9c0d37e86
commit a5a5421c5a
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,8 @@ public class SubscriptionHandler {
HttpClient client = HttpGetter.newClient();
try {
// make sure the feed push infos have been updated to the database
Thread.sleep(1000);
post.setEntity(new UrlEncodedFormEntity(nvp));
HttpResponse response = client.execute(post);

View File

@@ -79,7 +79,6 @@ public class PubSubHubbubCallbackREST {
@POST
@Consumes({ MediaType.APPLICATION_ATOM_XML, "application/rss+xml" })
public Response callback() {
log.info("content callback received");
try {
byte[] bytes = IOUtils.toByteArray(request.getInputStream());
FetchedFeed fetchedFeed = parser.parse(null, bytes);