Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wash-connect-crack
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
wash-connect-crack
Commits
17f2c9af
There was an error fetching the commit references. Please try again later.
Commit
17f2c9af
authored
1 year ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.PUT test
parent
d93b93b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
httpd-standalone-ssl.py
+15
-0
15 additions, 0 deletions
httpd-standalone-ssl.py
with
15 additions
and
0 deletions
httpd-standalone-ssl.py
+
15
−
0
View file @
17f2c9af
...
@@ -101,6 +101,21 @@ class my_handler(http.server.BaseHTTPRequestHandler):
...
@@ -101,6 +101,21 @@ class my_handler(http.server.BaseHTTPRequestHandler):
self
.
send_header
(
"
Content-type
"
,
"
text/plain; charset=utf-8
"
)
self
.
send_header
(
"
Content-type
"
,
"
text/plain; charset=utf-8
"
)
self
.
end_headers
()
self
.
end_headers
()
self
.
wfile
.
write
(
'
invalid post query.
'
.
encode
(
'
utf-8
'
))
self
.
wfile
.
write
(
'
invalid post query.
'
.
encode
(
'
utf-8
'
))
def
do_PUT
(
self
):
self
.
send_response
(
200
)
if
self
.
path
.
startswith
(
'
/update_machine_status_v1
'
):
# I don't know what to send for this request... We need packet capture here!
# This problem cause green "Pay" button loading forever for SOME machine.
# Sending a guess reply... TODO: test if it's working fine.
self
.
send_header
(
"
content-type
"
,
"
application/json; charset=utf-8
"
)
self
.
end_headers
()
self
.
wfile
.
write
(
'
{
"
status
"
:
"
ok
"
,
"
error
"
:{
"
errorCode
"
:0,
"
errorMessage
"
:
""
},
"
notifications
"
:[]}
'
.
encode
(
'
utf-8
'
))
return
self
.
send_response
(
403
)
self
.
send_header
(
"
Content-type
"
,
"
text/plain; charset=utf-8
"
)
self
.
end_headers
()
self
.
wfile
.
write
(
'
invalid put query.
'
.
encode
(
'
utf-8
'
))
try
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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