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):
1010 print ('connecting to {0} port {1}' .format (* server_address ), file = log_buffer )
1111 # TODO: connect your socket to the server here.
1212
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
1414 # from the server
1515 received_message = ''
1616
@@ -34,8 +34,8 @@ def client(msg, log_buffer=sys.stderr):
3434 # the server you will want to close your client socket.
3535 print ('closing socket' , file = log_buffer )
3636
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.
3939
4040
4141if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -1334,7 +1334,7 @@ correctly. It should
13341334 response = response_ok()
13351335
13361336 print (' sending response' , file = log_buffer)
1337- conn.sendall(response.encode( ' utf8 ' ) )
1337+ conn.sendall(response)
13381338 # ...
13391339
13401340
@@ -1576,7 +1576,7 @@ client what to expect.
15761576 * baz.html - ``Content-Type: text/html ``
15771577
15781578 There are *many * mime-type identifiers:
1579- http://www.webmaster-toolkit .com/mime-types.shtml
1579+ http://www.freeformatter .com/mime-types-list.html
15801580
15811581
15821582Mapping Mime-types
You can’t perform that action at this time.
0 commit comments