Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin
ip-info
Commits
77a57c43
Commit
77a57c43
authored
8 years ago
by
Martin
Browse files
Options
Download
Email Patches
Plain Diff
fixed format guessing invokation bug
parent
0d8269f5
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ipinfo/main.py
+3
-0
ipinfo/main.py
with
3 additions
and
0 deletions
+3
-0
ipinfo/main.py
View file @
77a57c43
...
...
@@ -27,6 +27,9 @@ def get_ip():
if
'format'
in
request
.
args
:
resp_format
=
request
.
args
.
get
(
'format'
,
'txt'
).
lower
()
if
resp_format
is
None
:
resp_format
=
tools
.
guess_format
(
request
)
query
=
[]
if
'q'
in
request
.
args
:
query
.
extend
(
request
.
args
.
get
(
'q'
).
lower
().
split
(
','
))
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help