Permalink
Browse files

Interpret Content-Location header as absolute or relative URI

(raptor_www_curl_header_callback): Use
raptor_new_uri_relative_to_base_counted to construct URI relative to
current base.
  • Loading branch information...
dajobe committed Apr 13, 2012
1 parent 2a96834 commit 2d1a9cd5a381f56ae06a2166819073bdd821a0b2
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/raptor_www_curl.c
View
@@ -136,8 +136,9 @@ raptor_www_curl_header_callback(void* ptr, size_t size, size_t nmemb,
if(www->final_uri)
raptor_free_uri(www->final_uri);
- www->final_uri = raptor_new_uri_from_counted_string(www->world, uri_str,
- uri_len);
+ www->final_uri = raptor_new_uri_relative_to_base_counted(www->world,
+ www->uri,
+ uri_str, uri_len);
#if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 2
if(www->final_uri)

0 comments on commit 2d1a9cd

Please sign in to comment.