aboutsummaryrefslogtreecommitdiff
path: root/lib/bytes/bytes_test.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2019-09-05 22:51:11 +0700
committerShulhan <m.shulhan@gmail.com>2019-09-05 22:51:11 +0700
commitc53eef929c962cb374dcacc578eaf860b5a681ec (patch)
tree3c90a1e38b4f12b936dc779797ca0e9c83de4394 /lib/bytes/bytes_test.go
parentffd23b2b1fe37b7699c133471b785212741743f0 (diff)
downloadpakakeh.go-0.8.2.tar.xz
share v0.8.2v0.8.2
* http: make the request body always available even after ParseForm() Previously, if the request type is query, form, or JSON, we call the ParseForm() to let the http.Request read the Body POST form data and fill the Form and/or PostForm fields. This method will cause the request Body will become empty since its already read and closed. One of use case of POST with form data is to check the integrity of POST body using checksum, which is not possible using only ParseForm(). This commit read all the body first into reqBody and recreate the request Body back using ioutil.NopCloser and bytes.Buffer. * all: replace document generator from asciidoctor to ciigo Previously, generating HTML files from asciidoc files require installing ruby, asciidoctor, and its dependency through Gemfile. To simplify this, we replace it with ciigo. Ciigo not only can convert the asciidoc files but it also support serving the file inside HTTP server and watching changes on asciidoc files during development for local previewing. * memfs: log and ignore error from NewNode An error for calling NewNode should not stop processing all files in directory. * io: log and ignore error from NewNode An error for calling NewNode should not stop processing all files in directory.
Diffstat (limited to 'lib/bytes/bytes_test.go')
0 files changed, 0 insertions, 0 deletions