Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑天保
webssh
Commits
e66e5f20
Commit
e66e5f20
authored
Oct 13, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added set_default_headers
parent
66ebe2ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
handler.py
webssh/handler.py
+3
-1
No files found.
webssh/handler.py
View file @
e66e5f20
...
@@ -39,6 +39,9 @@ class InvalidValueError(Exception):
...
@@ -39,6 +39,9 @@ class InvalidValueError(Exception):
class
MixinHandler
(
object
):
class
MixinHandler
(
object
):
def
set_default_headers
(
self
):
self
.
set_header
(
'Server'
,
'TornadoServer'
)
def
get_value
(
self
,
name
):
def
get_value
(
self
,
name
):
value
=
self
.
get_argument
(
name
)
value
=
self
.
get_argument
(
name
)
if
not
value
:
if
not
value
:
...
@@ -85,7 +88,6 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
...
@@ -85,7 +88,6 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
self
.
_reason
=
reason
self
.
_reason
=
reason
self
.
result
.
update
(
status
=
self
.
_reason
)
self
.
result
.
update
(
status
=
self
.
_reason
)
self
.
set_status
(
200
)
self
.
set_status
(
200
)
self
.
set_header
(
'Server'
,
'TornadoServer'
)
self
.
finish
(
self
.
result
)
self
.
finish
(
self
.
result
)
def
get_ssh_client
(
self
):
def
get_ssh_client
(
self
):
...
...
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