[libgdata] core: Use correct relation URI for next/previous feed links
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] core: Use correct relation URI for next/previous feed links
- Date: Fri, 12 Dec 2014 23:33:55 +0000 (UTC)
commit b74bc65d31e2d52eec4fb9ba2296b6ef64f40a72
Author: Philip Withnall <philip withnall collabora co uk>
Date: Fri Dec 12 19:36:05 2014 +0000
core: Use correct relation URI for next/previous feed links
GDataLink enforces that all relations are proper URIs, prefixing
iana.org to those which aren’t — so we need to do the same when calling
gdata_feed_look_up_link().
https://bugzilla.gnome.org/show_bug.cgi?id=741345
gdata/gdata-service.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 368e700..f0effa8 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -991,10 +991,10 @@ __gdata_service_query (GDataService *self, GDataAuthorizationDomain *domain, con
if (query != NULL && feed != NULL) {
GDataLink *_link;
- _link = gdata_feed_look_up_link (feed, "next");
+ _link = gdata_feed_look_up_link (feed, "http://www.iana.org/assignments/relation/next");
if (_link != NULL)
_gdata_query_set_next_uri (query, gdata_link_get_uri (_link));
- _link = gdata_feed_look_up_link (feed, "previous");
+ _link = gdata_feed_look_up_link (feed, "http://www.iana.org/assignments/relation/previous");
if (_link != NULL)
_gdata_query_set_previous_uri (query, gdata_link_get_uri (_link));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]