فهرست منبع

Merge pull request #51 from scossu/fix_48

Remove extraneous characters from anchor link. Fixes #48.
Stefano Cossu 6 سال پیش
والد
کامیت
a016dbeff1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lakesuperior/endpoints/ldp.py

+ 1 - 1
lakesuperior/endpoints/ldp.py

@@ -251,7 +251,7 @@ def post_resource(parent_uid):
     hdr = {'Location' : uri}
 
     if mimetype and not is_rdf:
-        hdr['Link'] = '<{0}/fcr:metadata>; rel="describedby"; anchor="<{0}>"'\
+        hdr['Link'] = '<{0}/fcr:metadata>; rel="describedby"; anchor="{0}"'\
                 .format(uri)
 
     out_headers.update(hdr)