Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ais_readers-examples-web_api_src
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
nfc-rfid-reader-sdk-deprecated
ais_readers-examples-web_api_src
Commits
535ff9bb
Commit
535ff9bb
authored
7 years ago
by
developer23
Browse files
Options
Downloads
Patches
Plain Diff
commit
parent
6a071fd1
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ais_http.py
+13
-2
13 additions, 2 deletions
ais_http.py
with
13 additions
and
2 deletions
ais_http.py
+
13
−
2
View file @
535ff9bb
...
...
@@ -77,8 +77,19 @@ class GetHandler(BaseHTTPRequestHandler):
def
do_GET
(
self
):
try
:
self
.
WriteFile
(
'
/html/index.html
'
)
try
:
path
=
os
.
path
.
join
(
os
.
getcwd
(),
'
html
'
)
for
index
in
'
index.html
'
,
'
index.htm
'
:
index
=
os
.
path
.
join
(
path
,
index
)
if
os
.
path
.
exists
(
index
):
self
.
WriteFile
(
index
)
else
:
self
.
send_error
(
301
)
self
.
send_header
(
'
Location
'
,
self
.
path
)
self
.
end_headers
()
return
None
# self.WriteFile(path)
except
IOError
:
self
.
send_error
(
404
,
'
File Not Found: %s
'
%
self
.
path
)
return
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment