Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-sshkey
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
df98d5cb
authored
Jul 29, 2014
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DeprecationWarning for mimetype
parent
5691a6db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
django_sshkey/views.py
+2
-2
No files found.
django_sshkey/views.py
View file @
df98d5cb
...
...
@@ -47,7 +47,7 @@ def lookup(request):
payload
=
request
.
read
()
key
=
UserKey
.
objects
.
get
(
id
=
int
(
payload
))
key
.
touch
()
return
HttpResponse
(
str
(
key
.
last_used
),
mime
type
=
'text/plain'
)
return
HttpResponse
(
str
(
key
.
last_used
),
content_
type
=
'text/plain'
)
try
:
fingerprint
=
request
.
GET
[
'fingerprint'
]
keys
=
UserKey
.
objects
.
filter
(
fingerprint
=
fingerprint
)
...
...
@@ -67,7 +67,7 @@ def lookup(request):
else
:
options
=
''
response
+=
options
+
key
.
key
+
'
\n
'
return
HttpResponse
(
response
,
mime
type
=
'text/plain'
)
return
HttpResponse
(
response
,
content_
type
=
'text/plain'
)
@login_required
@require_GET
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment