kwebio / kweb-core

A Kotlin web framework
https://docs.kweb.io/book
GNU Lesser General Public License v3.0
969 stars 57 forks source link

typo in docCookie.getItems function name #41

Closed ethanmdavidson closed 5 years ago

ethanmdavidson commented 5 years ago

kweb_bootstrap defines docCookie with a "getItems" function (with an 's' on the end) https://github.com/kwebio/core/blob/master/src/main/resources/io/kweb/kweb_bootstrap.html#L201

CookieReceiver tries to call docCookie.getItem (without the 's' on the end) https://github.com/kwebio/core/blob/master/src/main/kotlin/io/kweb/dom/cookies/CookieReceiver.kt#L43

doc.cookie.getString("test") throws "Error evaluating docCookies.getItem("test");: TypeError: docCookies.getItem is not a function"

sanity commented 5 years ago

Ah, good catch - thank you. I've corrected kweb_bootstrap, please reopen if 0.3.12 doesn't fix it.