File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def client(msg, log_buffer=sys.stderr):
10
10
print ('connecting to {0} port {1}' .format (* server_address ), file = log_buffer )
11
11
# TODO: connect your socket to the server here.
12
12
13
- # you can use this as a place to accumulate the entire message echoed back
13
+ # you can use this variable to accumulate the entire message received back
14
14
# from the server
15
15
received_message = ''
16
16
@@ -34,8 +34,8 @@ def client(msg, log_buffer=sys.stderr):
34
34
# the server you will want to close your client socket.
35
35
print ('closing socket' , file = log_buffer )
36
36
37
- # TODO: when all is said and done, you should return the reply you got
38
- # from the server as the value of this function.
37
+ # TODO: when all is said and done, you should return the entire reply
38
+ # you received from the server as the return value of this function.
39
39
40
40
41
41
if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -1334,7 +1334,7 @@ correctly. It should
1334
1334
response = response_ok()
1335
1335
1336
1336
print (' sending response' , file = log_buffer)
1337
- conn.sendall(response.encode( ' utf8 ' ) )
1337
+ conn.sendall(response)
1338
1338
# ...
1339
1339
1340
1340
@@ -1576,7 +1576,7 @@ client what to expect.
1576
1576
* baz.html - ``Content-Type: text/html ``
1577
1577
1578
1578
There are *many * mime-type identifiers:
1579
- http://www.webmaster-toolkit .com/mime-types.shtml
1579
+ http://www.freeformatter .com/mime-types-list.html
1580
1580
1581
1581
1582
1582
Mapping Mime-types
You can’t perform that action at this time.
0 commit comments