Explorar el Código

Merge pull request #51 from scossu/fix_48

Remove extraneous characters from anchor link. Fixes #48.
Stefano Cossu hace 7 años
padre
commit
a016dbeff1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)