Skip to content

Commit 062cb49

Browse files
committed
fixing errors found on delivery of session 2 lecture
1 parent 6d9cdd9 commit 062cb49

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

resources/session01/echo_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

4141
if __name__ == '__main__':

source/presentations/session02.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

15821582
Mapping Mime-types

0 commit comments

Comments
 (0)