Skip to content

Commit 7b1e719

Browse files
committed
fix indentation error in new code
1 parent 4768e35 commit 7b1e719

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

resources/session05/http_server_at_home.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def server():
3636
print >>sys.stderr, "making a server on %s:%s" % address
3737
sock.bind(address)
3838
sock.listen(1)
39-
39+
4040
try:
4141
while True:
4242
print >>sys.stderr, 'waiting for a connection'
@@ -60,18 +60,18 @@ def server():
6060
response = response_ok()
6161
# content, type = resolve_uri(uri) # change this line
6262

63-
## uncomment this try/except block once you have fixed
64-
## response_ok and added response_not_found
65-
# try:
66-
# response = response_ok(content, type)
67-
# except NameError:
68-
# response = response_not_found()
63+
## uncomment this try/except block once you have fixed
64+
## response_ok and added response_not_found
65+
# try:
66+
# response = response_ok(content, type)
67+
# except NameError:
68+
# response = response_not_found()
6969

7070
print >>sys.stderr, 'sending response'
7171
conn.sendall(response)
7272
finally:
7373
conn.close()
74-
74+
7575
except KeyboardInterrupt:
7676
sock.close()
7777
return

0 commit comments

Comments
 (0)