kopia lustrzana https://github.com/micropython/micropython
924e55aca1
The device will respond to a non-WS request with a simple page that loads websocket_content.js from a static host (http or https). However, even if the resources are https, the page is still http and therefore allows requesting to a WS (not WSS) websocket on the device. Removed unused client_handshake from websocket_helper, and then merges the remainder of this file (server_handshake) into webrepl.py (to reduce firmware size). Also added the respond-as-HTTP handling to server_handshake. The default HTTP response is a simple page that sets the base URL and then loads webrepl_content.js which document.write's the actual HTML. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> |
||
---|---|---|
.. | ||
axtls-include | ||
btstack | ||
lwip-include | ||
nimble | ||
uasyncio | ||
webrepl | ||
extmod.cmake | ||
extmod.mk | ||
font_petme128_8x8.h | ||
machine_bitstream.c | ||
machine_bitstream.h | ||
machine_i2c.c | ||
machine_i2c.h | ||
machine_mem.c | ||
machine_mem.h | ||
machine_pinbase.c | ||
machine_pinbase.h | ||
machine_pulse.c | ||
machine_pulse.h | ||
machine_pwm.c | ||
machine_pwm.h | ||
machine_signal.c | ||
machine_signal.h | ||
machine_spi.c | ||
machine_spi.h | ||
misc.h | ||
modbluetooth.c | ||
modbluetooth.h | ||
modbtree.c | ||
modframebuf.c | ||
modlwip.c | ||
modnetwork.c | ||
modnetwork.h | ||
modonewire.c | ||
moduasyncio.c | ||
modubinascii.c | ||
moducryptolib.c | ||
moductypes.c | ||
moduhashlib.c | ||
moduheapq.c | ||
modujson.c | ||
moduos.c | ||
moduplatform.c | ||
moduplatform.h | ||
modurandom.c | ||
modure.c | ||
moduselect.c | ||
modusocket.c | ||
modussl_axtls.c | ||
modussl_mbedtls.c | ||
modutimeq.c | ||
moduwebsocket.c | ||
moduwebsocket.h | ||
moduzlib.c | ||
modwebrepl.c | ||
mpbthci.c | ||
mpbthci.h | ||
network_cyw43.c | ||
network_cyw43.h | ||
network_ninaw10.c | ||
network_wiznet5k.c | ||
uos_dupterm.c | ||
utime_mphal.c | ||
utime_mphal.h | ||
vfs.c | ||
vfs.h | ||
vfs_blockdev.c | ||
vfs_fat.c | ||
vfs_fat.h | ||
vfs_fat_diskio.c | ||
vfs_fat_file.c | ||
vfs_lfs.c | ||
vfs_lfs.h | ||
vfs_lfsx.c | ||
vfs_lfsx_file.c | ||
vfs_posix.c | ||
vfs_posix.h | ||
vfs_posix_file.c | ||
vfs_reader.c | ||
virtpin.c | ||
virtpin.h |