summaryrefslogtreecommitdiff
path: root/src/raptor_grddl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/raptor_grddl.c')
-rw-r--r--src/raptor_grddl.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/raptor_grddl.c b/src/raptor_grddl.c
index 01dfb78f..f419164b 100644
--- a/src/raptor_grddl.c
+++ b/src/raptor_grddl.c
@@ -926,15 +926,19 @@ raptor_grddl_fetch_uri(raptor_parser* rdf_parser,
if(!www)
return 1;
- raptor_www_set_user_agent(www, "grddl/0.1");
+ if(raptor_www_set_user_agent2(www, "grddl/0.1", 0))
+ return 1;
if(flags & FETCH_ACCEPT_XSLT) {
- raptor_www_set_http_accept(www, "application/xml");
+ if(raptor_www_set_http_accept2(www, "application/xml", 0))
+ return 1;
} else {
accept_h = raptor_parser_get_accept_header(rdf_parser);
if(accept_h) {
- raptor_www_set_http_accept(www, accept_h);
+ ret = raptor_www_set_http_accept2(www, accept_h, 0);
RAPTOR_FREE(char*, accept_h);
+ if(ret)
+ return 1;
}
}
if(rdf_parser->uri_filter)