- Fixed a bug in the
static_file_handlerwhere valid requests were rejected because therange.limitwas incorrectly treated as the end of the range. - The Mist web server related module has been moved to the
wisp_mistadapter package. Awisp_ewepackage has been created too! send_filefailing will now result in an internal server error being sent.- Fixed a bug where the max body sizes would not be respected for chunked request body streams.
- Fixed a bug where Wisp would set content length header for range requests instead of letting the web server set it.
- Fixed a path traversal attack with encoded URI paths in
serve_static.
- The
content_security_policy_protectionmiddleware has been added.
- Fixed a bug where
serve_staticwouldn't handle special characters in paths correctly.
- The
multipart_bodyfunction and theFileUploadtype have been added to thesimulatemodule.
- Fixed warnings with latest stdlib.
- The
unprocessable_entityfunction has renamed tounprocessable_content. - The
entity_too_largefunction has renamed tocontent_too_large.
set_cookiewill no longer set theSecurecookie attributes for HTTP requests that do not have thex-forwarded-protoheader. This means that browsers like Safari, that do not considerlocalhostetc to be a secure context, will send Wisp-set cookies during local development.- The
parse_range_headerfunction andRangetype have been added. - The
serve_staticmiddleware now respects therangeheader. - The
wisp/simulatemodule replaces thewisp/testingmodule. - The
create_canned_connectionfunction has been removed from the public API. - The
read_body_to_bitstringfunction has renamed toread_body_bits. - The
csrf_known_header_protectionmiddleware has been added. - The
Textbody type and associated functions now take aStringrather than aStringTree. - The
Emptyresponse body type has been removed. Functions that previously returnedEmptynow return a suitable text response for the status code. - The
moved_permanentlyfunction has been renamed topermanent_redirect. - The
bad_requestfunction now takes a string as an argument.
- Updated for
gleam_erlangv1. - Fixed a bug where the
etagheader may not always be set for static assets.
- Updated for latest
gleam_stdlib.
- Updated
serve_staticto generate etags for static assets.
- Relaxed the
gleam_httprequirement to permit v4.
- Updated for
gleam_erlangv0.34.0. - The function
wisp.get_cookiegains function labels for its arguments.
- Fixed a bug where Wisp would fail to compile.
handle_headno longer sets the body toEmpty. This is so the webserver can get the content-length of the body that would have been set, which may be useful to clients.
- Updated for
mistv5.0.0.
- Updated for
gleam_stdlibv0.43.0.
- The requirement for
gleam_jsonhas been relaxed to < 3.0.0. - The requirement for
misthas been relaxed to < 4.0.0. - The Gleam version requirement has been corrected to
>= 1.1.0from the previously inaccurate">= 0.32.0.
- Rather than using
/tmp, the platform-specific temporary directory is detected used.
- The Mist web server related functions have been moved to the
wisp_mistmodule. - The
wispmodule gains theset_logger_levelfunction andLogLeveltype.
- HTML and JSON body functions now include
charset=utf-8in the content-type header. - The
require_content_typefunction now handles additional attributes correctly.
- The
mistversion constraint has been increased to >= 1.2.0. - The
simplifileversion constraint has been increased to >= 2.0.0. - The
escape_htmlfunction in thewispmodule has been optimised.
- The
mistversion constraint has been relaxed to permit 0.x or 1.x versions.
- The
wispmodule gains thefile_download_from_memoryandfile_downloadfunctions.
- The output format used by the logger has been improved.
- Erlang SASL and supervisor logs are no longer emitted.
- Updated for simplifile v1.4 and replaced the deprecated
simplifile.is_filefunction withsimplifile.verify_is_file.
- Relaxed version constraints for
gleam_stdlibandgleam_jsonto permit 0.x or 1.x versions.
- Updated for Gleam v0.33.0.
- Updated for simplifile v1.0.
- Updated for simplifile v0.3.
- Updated for Gleam v0.32. All references to "bit string" have been changed to "bit array" to match.
- The
wispmodule gains theget_queryfunction.
- The
wisp.require_formnow handlesapplication/x-www-form-urlencodedcontent types with a charset.
- The
wispmodule gains theset_cookie,get_cookie,json_responseandpriv_directoryfunctions. - The
wispmodule gains theSecuritytype.
- The
wispmodule gains theset_header,string_builder_body,string_body,json_body,unprocessable_entity,require_jsonandrequire_content_typefunctions. - The
wisp/testingmodule gains thepost_json,put_json,patch_json,delete_json, andset_headerfunctions. - The request construction functions in the
wisp/testingmodule now support query strings. e.g.get("/users?limit=10", []).
- The
mist_servicefunction has been renamed tomist_handler. - The
method_not_allowedfunction gains theallowedlabel for its argument. - The
wispmodule gains thehtml_escapefunction. - The
wisp/testingmodule gains thepost_form,put_form,patch_form, anddelete_formfunctions.
- Initial release