Skip to content

Commit

Permalink
Merge pull request #15 from fcrepo4-labs/FCREPO-2359
Browse files Browse the repository at this point in the history
Use auth with parse
  • Loading branch information
bseeger committed Dec 15, 2016
2 parents 09e30c6 + 1da20e2 commit 53ab9e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ def __init__(self, inputpath, config, logger):
else:
self.type = 'rdf'
self.destpath = quote((config.dir + self.relpath + config.ext))
self.graph = Graph().parse(self.origpath)
response = requests.get(self.origpath, auth=config.auth)
if response.status_code == 200:
self.graph = Graph().parse(data=response.text, format="text/turtle")

# handle binary resources on disk
elif (self.origpath.startswith(config.dir) and
Expand Down

0 comments on commit 53ab9e1

Please sign in to comment.