Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
e4658808
Commit
e4658808
authored
Mar 25, 2019
by
eckhart
Browse files
- server: slight changes
parent
619e1bd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/server.py
View file @
e4658808
...
...
@@ -47,8 +47,8 @@ from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor
import
json
from
multiprocessing
import
Process
,
Value
,
Queue
import
sys
from
typing
import
Callable
,
Optional
,
Union
,
Dict
,
List
,
Tuple
,
NamedTuple
,
Sequence
,
Set
,
cast
from
urllib.parse
import
urlparse
from
typing
import
Callable
,
Optional
,
Union
,
Dict
,
List
,
Tuple
,
Sequence
,
Set
,
cast
from
urllib.parse
import
urlparse
,
parse_qs
from
DHParser.toolkit
import
get_config_value
,
is_filename
,
load_if_file
,
re
...
...
@@ -178,8 +178,8 @@ class Server:
pass
else
:
head
=
str
(
data
[:
4096
])
if
is_filename
(
head
)
or
RX_IS_JSON
.
match
(
head
):
# TODO: compile file
if
not
RX_IS_JSON
.
match
(
head
):
# TODO: compile file
or data
pass
if
rpc_error
is
None
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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