Skip to content

Commit

Permalink
fixed usbfs / nutfs error when installing XCI / NSP
Browse files Browse the repository at this point in the history
  • Loading branch information
blawar committed Mar 28, 2019
1 parent acb883d commit 978873a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/Controller/Api.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def serveFile(response, path, filename = None, start = None, end = None):
if end == None:
end = size - 1
else:
end = int(end) + 1
end = int(end)

if start == None:
start = size - end
Expand Down Expand Up @@ -552,7 +552,7 @@ def getFile(request, response, start = None, end = None):
start, end = request.headers.get('Range').strip().strip('bytes=').split('-')

if end != '':
end = int(end)
end = int(end) + 1

if start != '':
start = int(start)
Expand Down

0 comments on commit 978873a

Please sign in to comment.