Changeset 185 for etherws/trunk
- Timestamp:
- 07/29/12 21:02:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/etherws.py
r184 r185 53 53 import traceback 54 54 55 import tornado 55 56 import websocket 56 57 … … 280 281 281 282 def auth_required(): 282 self.stream.write(tornado.escape.utf8( 283 stream = getattr(self, 'stream', self.request.connection.stream) 284 stream.write(tornado.escape.utf8( 283 285 'HTTP/1.1 401 Authorization Required\r\n' 284 286 'WWW-Authenticate: Basic realm=etherws\r\n\r\n' 285 287 )) 286 s elf.stream.close()288 stream.close() 287 289 288 290 try:
Note: See TracChangeset
for help on using the changeset viewer.